/* ComTwo CMS additions: only extend the existing Regna/ComTwo styles. */

#hero.comtwo-subhero {
  height: 72vh;
  min-height: 500px;
  background-position: center center;
}

#hero.comtwo-subhero h1 {
  max-width: 980px;
  padding: 0 15px;
}

#hero.comtwo-subhero h2 {
  max-width: 820px;
  padding: 0 15px;
  line-height: 1.45;
}

.comtwo-page-intro {
  padding-bottom: 40px;
}

.comtwo-page-services .box {
  height: auto;
  min-height: 245px;
}

.comtwo-page-services .description {
  margin-bottom: 0;
}

.comtwo-detail-sections {
  padding-top: 30px;
  background: #fff;
}

.comtwo-section-row {
  padding: 30px 0;
  border-top: 1px solid #f0f0f0;
}

.comtwo-section-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.comtwo-detail-sections .about-container .title {
  color: #333;
  font-weight: 700;
  font-size: 32px;
}

.comtwo-detail-sections .about-container p {
  line-height: 26px;
}

.comtwo-detail-sections .about-container .icon-box {
  background: #fff;
  padding: 0 0 24px 0;
}

.comtwo-detail-sections .about-container .icon-box .icon {
  float: left;
  background: #fff;
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  border-radius: 50%;
  border: 2px solid #ff0000;
}

.comtwo-detail-sections .about-container .icon-box .icon i {
  color: #ff0000;
  font-size: 24px;
  line-height: 0;
}

.comtwo-detail-sections .about-container .icon-box .title {
  margin-left: 80px;
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 18px;
  text-transform: uppercase;
}

.comtwo-detail-sections .about-container .icon-box .title a {
  color: #111;
}

.comtwo-detail-sections .about-container .icon-box .description {
  margin-left: 80px;
  line-height: 24px;
  font-size: 14px;
}

.comtwo-content-section {
  padding: 60px 0;
}

.comtwo-legal-page {
  padding-top: 70px;
}

.comtwo-legal-page .comtwo-content-section .container {
  max-width: 920px;
}

.comtwo-legal-page h1 {
  font-size: 24px;
  margin: 0;
}

.comtwo-legal-page h2 {
  color: #333;
  font-weight: 700;
  font-size: 24px;
  margin-top: 28px;
}

.comtwo-legal-cookie-button {
  border: 2px solid #ff0000;
  border-radius: 50px;
  background: #ff0000;
  color: #fff;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  text-transform: uppercase;
  transition: 0.3s;
}

.comtwo-legal-cookie-button:hover {
  background: #fff;
  color: #ff0000;
}

.comtwo-content-section .section-title {
  margin-bottom: 8px;
}

.comtwo-related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.comtwo-related-links a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #666;
}

.comtwo-related-links a:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

.comtwo-page-faq {
  background: #fff;
  padding: 80px 0;
}

.comtwo-page-faq .accordion-item {
  border: 1px solid #e6e6e6;
  margin-bottom: 10px;
}

.comtwo-page-faq .accordion-button {
  color: #333;
  font-weight: 700;
  box-shadow: none;
}

.comtwo-page-faq .accordion-button:not(.collapsed) {
  background: #ff0000;
  color: #fff;
}

.comtwo-page-faq .accordion-body p:last-child {
  margin-bottom: 0;
}

.comtwo-page-cta {
  margin: 0;
}

#portfolio.comtwo-page-portfolio .portfolio-item {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
}

#portfolio.comtwo-page-portfolio .comtwo-gallery-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
  color: inherit;
}

#portfolio.comtwo-page-portfolio .comtwo-gallery-link picture,
#portfolio.comtwo-page-portfolio .comtwo-gallery-link img {
  display: block;
  width: 100%;
  height: 100%;
}

#portfolio.comtwo-page-portfolio .comtwo-gallery-link img {
  object-fit: cover;
  object-position: center;
  top: 0;
  transition: transform 0.35s ease;
}

#portfolio.comtwo-page-portfolio .portfolio-item:hover img {
  top: 0;
  transform: scale(1.04);
}

#portfolio.comtwo-page-portfolio .portfolio-info {
  left: 0;
  right: 0;
  bottom: -70px;
  pointer-events: none;
}

#portfolio.comtwo-page-portfolio .portfolio-item:hover .portfolio-info {
  bottom: 0;
}

#portfolio.comtwo-page-portfolio .portfolio-info .preview-link {
  pointer-events: none;
}

.comtwo-tool {
  background: #f7f7f7;
  padding: 80px 0;
}

.comtwo-tool .container,
.comtwo-tool-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px;
}

.comtwo-tool .box {
  height: auto;
  min-height: 0;
  padding: 35px 25px 28px;
  margin-bottom: 0;
  text-align: left;
}

.comtwo-tool .box .title {
  text-align: center;
}

.comtwo-tool label {
  display: block;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.comtwo-tool input,
.comtwo-tool select,
.comtwo-tool textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  padding: 10px 12px;
  background: #fff;
}

.comtwo-tool-result {
  display: block;
  margin: 20px 0;
  padding: 15px;
  background: #fff;
  border-left: 4px solid #ff0000;
  color: #333;
  font-weight: 700;
}

.comtwo-tool-cta,
.comtwo-tool-actions button {
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  transition: 0.5s;
  border: 2px solid #ff0000;
  background: #ff0000;
  color: #fff;
}

.comtwo-tool-cta:hover,
.comtwo-tool-actions button:hover {
  background: #fff;
  color: #ff0000;
}

.comtwo-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.comtwo-sticker-preview,
.comtwo-qr-preview {
  width: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e6e6e6;
}

.comtwo-qr-preview svg {
  width: min(100%, 320px);
  height: auto;
}

.comtwo-hp {
  position: absolute;
  left: -9999px;
}

.comtwo-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #666;
  font-size: 14px;
}

.comtwo-consent input {
  width: auto !important;
  margin-top: 4px;
}

#contact .php-email-form .comtwo-form-message {
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
}

#contact .php-email-form .comtwo-form-message.is-ok {
  color: #18d26e;
}

#contact .php-email-form .comtwo-form-message.is-error {
  color: #ed3c0d;
}

.comtwo-upload-note {
  margin: 8px 0 0;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 0, 0, 0.45);
  outline-offset: 2px;
}

#contact .info a {
  color: #333;
}

#contact .info a:hover {
  color: #ff0000;
}

#footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#footer a:hover {
  color: #ffb3b3;
}

#footer .comtwo-cookie-settings {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#footer .comtwo-cookie-settings:hover {
  color: #ffb3b3;
}

.comtwo-cookie {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 10000;
  color: #333;
}

.comtwo-cookie__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px;
  border-top: 4px solid #ff0000;
  background: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.comtwo-cookie__text {
  max-width: 720px;
}

.comtwo-cookie__text strong {
  display: block;
  margin-bottom: 6px;
  color: #111;
  font: 700 18px "Poppins", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.comtwo-cookie__text p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.comtwo-cookie__text a {
  color: #ff0000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comtwo-cookie__choice {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 18px 8px 0;
  font-weight: 700;
}

.comtwo-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 280px;
}

.comtwo-cookie__actions button {
  border: 2px solid #ff0000;
  border-radius: 50px;
  background: #ff0000;
  color: #fff;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  text-transform: uppercase;
  transition: 0.3s;
}

.comtwo-cookie__actions button:hover {
  background: #fff;
  color: #ff0000;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    font-size: 36px;
  }

  .navbar-mobile ul {
    top: 64px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: 0.2px;
  }

  .navbar-mobile .dropdown ul {
    margin: 4px 12px 12px;
  }

  .navbar-mobile .dropdown ul a {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  p,
  li {
    line-height: 1.65;
  }

  .mobile-nav-toggle {
    font-size: 36px;
  }

  .navbar-mobile ul {
    top: 64px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: 0.2px;
  }

  .navbar-mobile .dropdown ul {
    margin: 4px 12px 12px;
  }

  .navbar-mobile .dropdown ul a {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 18px;
  }

  .section-header .section-description {
    font-size: 17px;
  }

  #about .about-container p,
  .comtwo-detail-sections .about-container p,
  .comtwo-page-services .description {
    font-size: 17px;
  }

  #hero.comtwo-subhero {
    height: 62vh;
    min-height: 430px;
  }

  .comtwo-page-services .box {
    min-height: 0;
  }

  .comtwo-tool {
    padding: 60px 0;
  }

  .comtwo-detail-sections .about-container .icon-box .title,
  .comtwo-detail-sections .about-container .icon-box .description {
    margin-left: 0;
    padding-left: 82px;
  }

  #contact .php-email-form button[type=submit],
  .comtwo-tool-cta,
  .comtwo-tool-actions button {
    width: 100%;
    text-align: center;
  }

  .comtwo-cookie {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .comtwo-cookie__inner {
    display: block;
    padding: 18px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .comtwo-cookie__actions {
    min-width: 0;
    margin-top: 12px;
    justify-content: stretch;
  }

  .comtwo-cookie__actions button {
    width: 100%;
    font-size: 15px;
  }
}
