/* Amoldo Designs overrides, loaded after style.css */

/* ---------- Preloader: skip after the first page, fade out quicker ---------- */
.no-preloader #preloader {
  display: none;
}

#preloader,
#preloader .preloader-inner .loading-text {
  transition-duration: 0.4s;
}

/* ---------- Header: wide 2026 logo ---------- */
.header .logo a img,
.header .logo img {
  width: 220px !important;
  max-width: 220px;
}

.header .header_inner {
  padding: 1.5rem 0;
}

.mr_menu .logo a img,
.mr_menu .logo img {
  width: 180px !important;
  margin-top: 0;
}

@media (max-width: 767px) {
  .header .logo a img,
  .header .logo img {
    width: 150px !important;
    max-width: 150px;
  }

  .header .header_inner {
    padding: 1.25rem 0;
  }
}

/* Content starts right below the fixed header (128px desktop, 104px tablet, 78px phone) */
.theme_slider,
.page_header {
  padding-top: 128px;
}

@media (max-width: 991px) {
  .theme_slider,
  .page_header {
    padding-top: 104px;
  }
}

/* ---------- Home banner: full width, edge to edge ---------- */

.theme_slider .swiper-slide {
  padding-right: 0;
}

/* Same 16:9 shape as the banner photos (1920x1080), so nothing is cropped */
.theme_slider .swiper-slide .slider {
  padding: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

@media (max-width: 767px) {
  .theme_slider,
  .theme_slider.bg-black,
  .page_header {
    padding-top: 78px;
  }
}

/* ---------- Footer: compact contact box ---------- */
.footer {
  padding-bottom: 2rem;
}

@media screen and (min-width: 1600px) {
  .footer {
    padding-bottom: 3rem;
  }
}

.footer .footer_inner {
  padding: 2.5rem 0;
}

.footer .footer_inner .row.align-items-end {
  align-items: center !important;
}

/* Vertical "CONTACT" as in the original theme, sized to the compact footer */
@media (min-width: 576px) {
  .footer .footer_inner .section-header h2,
  .footer .footer_inner .section-header .h2 {
    font-size: 4rem;
    line-height: 3.25rem;
    margin: 0;
  }
}

/* Email, phone and social icons stacked, left aligned next to "CONTACT" */
.footer .footer_inner .communication {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 576px) {
  .footer .footer_inner .footer_contact_list {
    padding-left: 2rem;
  }
}

.footer .footer_inner .footer_contact_list .footer_social {
  text-align: left;
  margin: 0.25rem 0 0;
}

/* ---------- Social icons in brand colours (footer, mobile menu, project pages) ---------- */
.footer .footer_inner .footer_social .social_list li a,
.project-information .project-share ul li.linkedin a,
.project-information .project-share ul li.instagram a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* The theme pads icons inside .communication for the email/phone rows */
.footer .footer_inner .footer_social .social_list li a i {
  padding: 0;
  line-height: 1;
}

.footer .footer_inner .footer_social .social_list li a:hover,
.project-information .project-share ul li.linkedin a:hover,
.project-information .project-share ul li.instagram a:hover {
  color: #ffffff;
  opacity: 0.85;
  transform: translateY(-2px);
}

.social_list li.linkedin a,
.project-share li.linkedin a {
  background: #0a66c2 !important;
}

.social_list li.instagram a,
.project-share li.instagram a {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
}

.footer .footer_inner .footer_elements_inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

@media (max-width: 575px) {
  .footer .footer_inner .footer_elements_inner {
    align-items: flex-start;
  }
}

.footer .footer_inner .communication .info_body:not(:last-child) {
  margin-bottom: 0;
}

.footer .footer_inner .communication .info_body h6,
.footer .footer_inner .communication .info_body .h6 {
  line-height: 1.75rem;
  margin-bottom: 0;
}

.footer .footer_inner .communication .info_body h5,
.footer .footer_inner .communication .info_body .h5 {
  line-height: 1.75rem;
  margin-bottom: 0;
}

.footer_logo img {
  width: 200px;
  max-width: 100%;
}

.copyright.center-txt {
  margin-top: 1.5rem;
}

.copyright.center-txt p {
  margin-bottom: 0;
}

@media screen and (max-width: 575px) {
  .footer .footer_inner .communication {
    margin: 1rem 0;
  }
}

/* ---------- Contact form submit notification ---------- */
.form-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: min(420px, calc(100% - 2rem));
  padding: 1rem 1.25rem;
  border-left: 5px solid #a6a182;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  color: #1b1b1b;
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.form-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.form-toast.error {
  border-left-color: #d9534f;
}

.form-toast .form-toast-icon {
  flex: none;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #7d7858;
}

.form-toast.error .form-toast-icon {
  color: #d9534f;
}

.form-toast .form-toast-body {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-toast .form-toast-body strong {
  display: block;
  margin-bottom: 0.15rem;
}

.form-toast .form-toast-close {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: #6b6b6b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.form-toast .form-toast-close:hover {
  color: #1b1b1b;
}

/* ---------- Phones & tablets: nothing wider than the screen ---------- */
body {
  overflow-x: hidden;
}

@media (max-width: 991px) {
  /* Gallery gutters were wider than the page padding */
  .gutter-15,
  .gutter-90 {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }

  .gutter-15 .grid-item,
  .gutter-90 .grid-item {
    padding: 0.75rem;
  }

  .running_projects .grid-item img.item_image {
    width: 100%;
    max-width: 100%;
  }

  /* About page: heading sits above its text, so align it the same way */
  .mission_bottom_part .section-header .border-line {
    text-align: left;
  }

  .mission_bottom_part .section-header .border-line::after {
    left: 0;
    right: auto;
  }

  .mission_bottom_part .section-header {
    margin-bottom: 3rem;
  }
}

/* ---------- Readable small text (nothing under 12px) ---------- */
.grid-item .label-text h6,
.grid-item .label-text .h6,
.grid-item .label-text h6 a,
.running_projects .grid-item .label-text h6 {
  font-size: 0.8125rem;
}

.running_projects .grid-item .label-text .details_link,
.details_link a .link_text {
  font-size: 0.8125rem;
}

.footer .footer_inner .terms_condition ul li a {
  font-size: 0.75rem;
}

/* ---------- One button style: brand olive ---------- */
.btn.gray {
  background-color: #a6a182;
  color: #ffffff;
}

.btn.gray:before {
  background-image: url(../img/btn-texture-olive.png);
  border-color: #a6a182;
}

.btn.gray:hover {
  background-color: rgba(166, 161, 130, 0.6);
  color: #ffffff;
}

/* Footer "CONTACT": subtle, but readable (3.3:1 on black) */
.footer .footer_inner .section-header h2,
.footer .footer_inner .section-header .h2 {
  color: #5f5f5f;
}

/* ---------- WhatsApp chat button ---------- */
.whatsapp-float,
.bg-dark a.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: #f5f3ee;
  color: #0b0b0b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.whatsapp-float svg {
  width: 1.5rem;
  height: 1.5rem;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible,
.bg-dark a.whatsapp-float:hover,
.bg-dark a.whatsapp-float:focus-visible {
  background: #25d366;
  color: #ffffff;
}

.whatsapp-float:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* "UP" button sits directly above the WhatsApp button */
.totop {
  right: 1.25rem;
  bottom: 5.25rem;
  width: 3.25rem;
  height: 3.25rem;
}

@media (min-width: 768px) {
  .whatsapp-float {
    right: 2rem;
    bottom: 2rem;
  }

  .totop {
    right: 2rem;
    bottom: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}

/* ---------- Overflow: clip decorative overhang (giant "ABOUT"/"PROJECTS" words etc.) ---------- */
main.wrapper {
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  main.wrapper {
    overflow-x: clip;
  }
}

/* Gallery gutters no wider than the page padding at any width */
.gutter-15 {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.gutter-15 .grid-item {
  padding: 0.75rem;
}

@media (max-width: 1399px) {
  .gutter-90 {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .gutter-90 .grid-item {
    padding: 1.5rem;
  }
}

@media (max-width: 991px) {
  .gutter-90 {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }

  .gutter-90 .grid-item {
    padding: 0.75rem;
  }
}

.running_projects .grid-item img.item_image {
  max-width: 100%;
}

/* ---------- Touch targets: at least 44x44px ---------- */
.mr_menu_toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.625rem;
}

.totop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.project-details .post-footer .page-all a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
}

.footer_logo a {
  display: inline-block;
}
