/* Standalone layout for the ameu8 pages.
   Works without the WordPress theme, missing images, or jQuery. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eaeaea;
  color: #666;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

img.is-broken {
  display: none !important;
}

a {
  color: #444;
  text-decoration: none;
}

a:hover {
  color: #c60c31;
}

h1, h2, h3, h4, h5, h6 {
  color: #333;
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin: 0 0 0.9em;
}

#page {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.08);
}

/* Header */

.top-contact {
  background: #f7f7f7;
  border-bottom: 1px solid #ececec;
  text-align: right;
  padding: 7px 24px;
  font-size: 12px;
  color: #888;
}

.top-contact span {
  margin-left: 16px;
}

.top-contact b {
  color: #c60c31;
  margin-right: 4px;
}

#site-head .col-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.logo-fallback {
  background: transparent !important;
  color: #c60c31 !important;
  font-size: 34px !important;
  font-weight: 800;
  letter-spacing: -1px;
  padding: 0 !important;
  min-height: 0 !important;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: #c60c31;
  color: #fff;
  border: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#top-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#top-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#top-menu .current-menu-item > a,
#top-menu .current_page_item > a,
#top-menu a:hover {
  color: #c60c31;
}

/* Slider and banners */

#slides-wrap-home,
.top-banner {
  background: #1b1b1b;
  position: relative;
  overflow: hidden;
}

.slide img,
.top-banner img {
  display: block;
  width: 100%;
}

.banner-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 300px;
  padding: 28px;
  text-align: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(120deg, #1b1b1b 0%, #5c0a1c 58%, #c60c31 100%);
}

#slides-wrap-home.slider-ready .slide {
  display: none;
}

#slides-wrap-home.slider-ready .slide.is-active {
  display: block;
}

.slider-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.slider-dot.is-active {
  background: #fff;
}

/* Content layout */

#main.right-side {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 24px 48px;
}

#main.fullwidth.main-box,
.post-content.main-box {
  padding: 32px 24px 48px;
}

#main article#content {
  flex: 1 1 auto;
  min-width: 0;
}

#content,
.ttf-tweet-text,
.post-content {
  overflow-wrap: anywhere;
}

#sidebar {
  flex: 0 0 270px;
  width: 270px;
}

.post-content ul,
.post-content ol {
  padding-left: 1.2em;
}

.post-content li {
  margin-bottom: 0.35em;
}

.alignleft {
  float: left;
  margin: 0 14px 10px 0;
}

.aligncenter {
  display: block;
  margin: 12px auto;
}

.clear {
  clear: both;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* clearfix must not become an extra flex item */
#main.clearfix::after,
.footer-widget.clearfix::after,
#site-head .clearfix::after,
#bottom-menu ul.clearfix::after {
  content: none;
  display: none;
}

.page-intro {
  padding: 26px 24px 18px;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 55%, #fdecef 100%);
  border-bottom: 1px solid #f3d5dc;
}

.page-kicker {
  margin: 0 0 4px;
  color: #c60c31;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-intro h1 {
  margin: 0;
  font-size: 30px;
}

/* Home service cards */

.sc-col-3-1 {
  float: left;
  width: 31.8%;
  margin: 0 2.3% 20px 0;
}

.sc-col-3-1.sc-last {
  margin-right: 0;
}

.sc-iconbox {
  min-height: 210px;
  padding: 18px 16px 16px;
  background: #fafafa;
  border: 1px solid #eee;
  border-top: 3px solid #c60c31;
}

.iconbox-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.iconbox-head-icon {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #c60c31;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.sc-iconbox-2 .iconbox-head-icon::before { content: "Es"; }
.sc-iconbox-7 .iconbox-head-icon::before { content: "De"; }
.sc-iconbox-10 .iconbox-head-icon::before { content: "Pr"; }

.iconbox-title {
  margin: 0;
  font-size: 16px;
}

.iconbox-sub-title {
  margin: 0;
  color: #999;
  font-size: 12px;
}

.iconbox-desc {
  color: #666;
}

/* Blog lists and single posts */

.blog-list ul,
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-list li.post {
  display: flex;
  gap: 16px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #ececec;
  border-radius: 6px;
  background: #fff;
}

.blog-list li.post:hover {
  border-color: #e7b7c2;
}

.blog-small-list .post-thumb {
  flex: 0 0 205px;
}

.blog-small-list .post-thumb img,
.blog-small-list .post-thumb .img-fallback {
  width: 205px;
  height: 140px;
  border-radius: 4px;
}

.blog-list .post-entry {
  flex: 1 1 auto;
  min-width: 0;
}

.blog-list .title,
.post-blog-single .title,
.post-single-contact > .title {
  margin: 0 0 6px;
  font-size: 20px;
}

.post-blog-single .title {
  font-size: 28px;
  line-height: 1.25;
}

.post-blog-single {
  padding-bottom: 8px;
}

.post-thumb-blog {
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 6px;
  background: #1b1b1b;
}

.post-thumb-blog .banner-fallback {
  min-height: 220px;
  font-size: 22px;
}

.post-meta {
  margin: 0 0 8px;
  color: #999;
  font-size: 12px;
}

.post-more {
  margin-top: 8px;
}

.post-more a,
#send-contact-message,
#cn-accept-cookie {
  display: inline-block;
  padding: 7px 12px;
  background: #c60c31;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post-more a:hover,
#send-contact-message:hover {
  background: #9d0926;
}

.post-thumb-blog img,
.post-thumb-blog .img-fallback {
  width: 100%;
  max-height: 380px;
}

.tags {
  margin-top: 18px;
  font-size: 13px;
}

.tags a,
.tagcloud a {
  display: inline-block;
  margin: 0 4px 6px 0;
  padding: 2px 8px;
  background: #f3f3f3;
  line-height: 1.5;
}

.tags a:hover,
.tagcloud a:hover {
  background: #c60c31;
  color: #fff;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.pagination a,
.pagination .current {
  display: inline-block;
  min-width: 34px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.pagination .current {
  border-color: #c60c31;
  background: #c60c31;
  color: #fff;
}

#main.fullwidth .post-single,
#main.fullwidth .post-content {
  max-width: 760px;
}

.post-content h3 {
  margin: 1.4em 0 0.4em;
  padding: 8px 12px;
  background: #fafafa;
  border-left: 4px solid #c60c31;
}

.post-content .img-fallback {
  max-width: 100%;
}

.img-fallback.alignleft {
  float: left;
  width: 72px;
  height: 72px;
  margin: 2px 14px 8px 0;
}

.img-fallback.aligncenter {
  margin-right: auto;
  margin-left: auto;
}

.img-fallback-icon {
  display: inline-flex;
  padding: 4px;
  border-radius: 6px;
  font-size: 10px;
  vertical-align: middle;
}

/* Sidebar */

#sidebar {
  padding: 16px 14px 6px;
  background: #fafafa;
  border: 1px solid #eee;
  border-top: 3px solid #c60c31;
}

#sidebar .widget {
  margin: 0 0 28px;
}

#sidebar .widget h3,
.footer-widget h3,
.widget-contact-details h3 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c60c31;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.searchbox dl {
  display: flex;
  margin: 0;
}

.searchbox dt {
  flex: 1;
}

.searchbox dd {
  margin: 0;
}

#widget-search-input,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font: inherit;
}

#widget-search-button {
  width: 42px;
  height: 38px;
  border: 0;
  background: #c60c31 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='white' d='M11.7 10.3a6 6 0 1 0-1.4 1.4l3.5 3.5 1.4-1.4-3.5-3.5zM6.5 11a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/></svg>") center no-repeat;
  color: transparent;
  cursor: pointer;
}

.widget_archive ul {
  max-height: 240px;
  overflow: auto;
  border: 1px solid #eee;
  background: #fff;
}

.widget_archive a {
  display: block;
  padding: 6px 10px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 12px;
}

.widget_archive a:hover {
  background: #faf6f7;
}

.tagcloud {
  line-height: 1.9;
}

.tagcloud a {
  font-size: 12px !important;
}

.widget-contact-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-contact-details li {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.widget-contact-details .title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* Contact form */

.contact-form,
.post-single-contact > .title {
  max-width: 640px;
}

.contact-form {
  padding: 16px 16px 8px;
  background: #fafafa;
  border: 1px solid #eee;
  border-top: 3px solid #c60c31;
}

.contact-form .input-block,
.contact-form .textarea-block {
  margin: 0 0 14px;
}

.post-single-contact span:empty,
.widget-contact-details span:empty {
  display: none;
}

.contact-form label {
  display: block;
  color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  margin-top: 4px;
}

.hide {
  display: none;
}

.submit-block {
  color: #555;
  font-size: 13px;
}

#send-contact-message {
  margin-top: 10px;
  border: 0;
  cursor: pointer;
  text-transform: none;
  font-size: 14px;
}

#response {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #b7e0b7;
  background: #f4fff4;
  color: #246124;
}

.loader {
  width: 18px;
  height: 18px;
  border: 2px solid #c60c31;
  border-right-color: transparent;
  border-radius: 50%;
}

/* Image placeholders (missing files) */

.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 8px;
  background: linear-gradient(145deg, #3a3a3a, #8e1028);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
}

/* Footer */

footer {
  background: #2b2b2b;
  color: #ccc;
}

.footer-widget {
  display: flex;
  gap: 24px;
  padding: 32px 24px 16px;
}

.footer-widget .col-3-1 {
  flex: 1 1 0;
  min-width: 0;
}

.footer-widget h3 {
  color: #fff;
}

.footer-widget a {
  color: #e8e8e8;
}

.footer-widget a:hover {
  color: #ff8aa0;
}

.widget-posts li {
  margin-bottom: 14px;
  overflow: hidden;
}

.widget-posts .post-thumb,
.widget-posts .alignleft {
  float: left;
  width: 48px;
  height: 48px;
  margin: 0 10px 0 0;
}

.widget-posts .post-thumb .img-fallback,
.widget-posts .alignleft .img-fallback {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 4px;
  font-size: 10px;
}

.widget-posts .title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.footer-widget .post-meta,
.ttf-timestamp,
.ttf-tweet-full-name {
  color: #999;
  font-size: 11px;
}

.ttf-tweet {
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 4px;
  background: #353535;
  font-size: 12px;
  line-height: 1.45;
}

.ttf-tweet-user-name {
  color: #fff;
  font-weight: 700;
}

.socialmedia-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.socialmedia-buttons .img-fallback {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

#bottom-menu {
  background: #222;
}

#bottom-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 12px 24px;
}

#bottom-menu a,
#bottom-menu li {
  color: #ccc;
  font-size: 13px;
}

.footer-message {
  padding: 4px 16px 20px;
  background: #2b2b2b;
  color: #888;
  font-size: 12px;
  text-align: center;
}

.footer-message p {
  margin: 0;
}

/* Cookie bar and back-to-top */

#cookie-notice {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  background: #cf0a2c;
  color: #fff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.2);
}

#cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.45;
}

#cookie-notice a {
  color: #fff;
  text-decoration: underline;
}

#cn-accept-cookie {
  margin-left: 8px;
  background: #fff;
  color: #cf0a2c !important;
  text-decoration: none;
  text-transform: none;
}

#toTop {
  position: fixed;
  z-index: 1001;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  background: #c60c31;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#toTop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.has-cookie {
  padding-bottom: 130px;
}

body.has-cookie #toTop.is-visible {
  bottom: 146px;
}

/* Narrow screens */

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-block;
  }

  #top-menu {
    display: none;
    width: 100%;
  }

  #top-menu.is-open {
    display: block;
  }

  #site-head .col-box {
    flex-wrap: wrap;
  }

  #top-menu ul {
    flex-direction: column;
    padding-top: 8px;
  }

  #main.right-side,
  .footer-widget {
    display: block;
  }

  #sidebar,
  .footer-widget .col-3-1 {
    width: 100%;
  }

  .blog-list li.post {
    display: block;
  }

  .blog-small-list .post-thumb,
  .blog-small-list .post-thumb img,
  .blog-small-list .post-thumb .img-fallback {
    width: 100%;
    height: auto;
    min-height: 140px;
  }

  .sc-col-3-1 {
    float: none;
    width: 100%;
    margin-right: 0;
  }

  .top-contact {
    text-align: left;
  }

  .top-contact span {
    display: inline-block;
    margin: 0 12px 0 0;
  }

  .banner-fallback {
    min-height: 180px;
    font-size: 22px;
  }
}
