/* Loaded after main.css so project images are never cropped */
.project-single .project-hero.section.section-inner.started-heading {
  margin-top: 0 !important;
  padding-top: 140px !important;
  padding-bottom: 40px !important;
}

/* Paginated projects grid — keep layout stable without Isotope */
.projects-showcase .works-items.projects-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  height: auto !important;
  position: relative !important;
}

.projects-showcase .works-items.projects-grid .works-col {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  float: none !important;
  width: 50%;
  box-sizing: border-box;
}

@media screen and (max-width: 991px) {
  .projects-showcase .works-items.projects-grid .works-col {
    width: 100%;
  }
}


.project-single .project-hero .h-titles {
  margin-top: 0 !important;
}

.projects-showcase .works-item .image {
  overflow: visible !important;
  background: #0f0f10;
  border: 1px solid rgba(245, 230, 202, 0.12);
  box-sizing: border-box;
}

.projects-showcase .works-item .image:before,
.projects-showcase .works-item .image:after,
.projects-showcase .works-item .image .img:before,
.projects-showcase .works-item .image .img:after {
  display: none !important;
  content: none !important;
}

.projects-showcase .works-item .image .img {
  overflow: visible !important;
  background: #0f0f10;
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  padding: 16px;
  box-sizing: border-box;
}

.projects-showcase .works-item .image img,
.projects-showcase .works-item:hover .image .img img,
.projects-showcase .works-items.works-masonry-items .works-item .image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  transform: none !important;
  -webkit-transform: none !important;
}

/* Hover title overlay — readable + centered */
.projects-showcase .works-items.works-masonry-items .works-item,
.projects-showcase .works-items.works-masonry-items .works-item a {
  position: relative !important;
  display: block !important;
}

.projects-showcase .works-items.works-masonry-items .works-item .desc {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 28px 24px !important;
  margin: 0 !important;
  opacity: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0.55) 0%,
    rgba(8, 8, 10, 0.78) 100%
  ) !important;
  transition: opacity 0.35s ease !important;
}

.projects-showcase .works-items.works-masonry-items .works-item:hover .desc {
  opacity: 1 !important;
  bottom: auto !important;
}

.projects-showcase .works-items.works-masonry-items .works-item .desc .name {
  margin: 0 0 12px !important;
  font-size: clamp(28px, 3.6vw, 42px) !important;
  line-height: 1.15 !important;
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  max-width: 92%;
}

.projects-showcase .works-items.works-masonry-items .works-item .desc .category {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #F5E6CA !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  max-width: 90%;
}

.projects-showcase .works-item .image .overlay {
  background: rgba(8, 8, 10, 0.35) !important;
}

.project-single .project-detail-title,
.project-single .project-detail-title .project-title-main {
  font-family: "Sorts Mill Goudy", serif !important;
  font-size: clamp(44px, 9.5vw, 100px) !important;
  line-height: 1.12 !important;
  font-weight: 400 !important;
  letter-spacing: -2px;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  color: #fff;
  overflow: visible !important;
  padding-bottom: 0.08em;
}

.project-gallery-item .image {
  float: none !important;
  width: 100% !important;
  overflow: visible !important;
}

.project-gallery-item .image:before,
.project-gallery-item .image:after,
.project-gallery-item .image .img:before,
.project-gallery-item .image .img:after {
  display: none !important;
  content: none !important;
}

.project-gallery-item .img {
  background: #0a0a0b !important;
  padding: 14px !important;
  border: 1px solid rgba(245, 230, 202, 0.12) !important;
  overflow: visible !important;
}

.project-gallery-item img,
.project-gallery-item:hover .image .img img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  transform: none !important;
  -webkit-transform: none !important;
}

@media screen and (max-width: 767px) {
  .project-single .project-detail-title,
  .project-single .project-detail-title .project-title-main {
    font-size: clamp(38px, 12vw, 50px) !important;
    letter-spacing: -1px;
  }

  .project-gallery-item .img {
    padding: 8px !important;
  }
}

.projects-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  width: 100%;
  max-width: 520px;
  margin: 48px auto 8px;
  padding: 0;
  clear: both;
  position: relative;
  z-index: 2;
}

.projects-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.projects-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin: 0;
  border: 1px solid rgba(245, 230, 202, 0.32);
  background: rgba(15, 15, 16, 0.65);
  color: #f5e6ca;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    opacity 0.2s ease;
}

.projects-page-nav {
  min-width: 108px;
  padding: 0 18px;
}

.projects-page-num {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.projects-page-btn:hover:not(:disabled):not(.active) {
  border-color: rgba(245, 230, 202, 0.75);
  background: rgba(245, 230, 202, 0.1);
}

.projects-page-btn.active {
  background: #f5e6ca;
  border-color: #f5e6ca;
  color: #111;
  cursor: default;
}

.projects-page-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.projects-page-btn:focus-visible {
  outline: 2px solid #f5e6ca;
  outline-offset: 3px;
}

@media screen and (max-width: 575px) {
  .projects-pagination {
    gap: 12px;
    max-width: 100%;
  }

  .projects-page-nav {
    min-width: 92px;
    padding: 0 12px;
    font-size: 12px;
  }

  .projects-page-num,
  .projects-page-btn {
    height: 40px;
  }

  .projects-page-num {
    width: 40px;
    min-width: 40px;
  }
}

/* Contact section — redesigned layout */
#contact-section.contact-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding-top: 110px;
  padding-bottom: 120px;
  clear: both;
  position: relative;
  z-index: 2;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  gap: 40px 56px;
  align-items: start;
  margin-top: 12px;
}

.contact-aside-lead {
  margin: 0 0 28px;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.65;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 18px 18px 16px;
  border: 1px solid rgba(245, 230, 202, 0.14);
  background: linear-gradient(
    145deg,
    rgba(245, 230, 202, 0.06) 0%,
    rgba(18, 18, 20, 0.9) 55%
  );
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-info-card:hover {
  border-color: rgba(245, 230, 202, 0.35);
  background: linear-gradient(
    145deg,
    rgba(245, 230, 202, 0.1) 0%,
    rgba(18, 18, 20, 0.95) 55%
  );
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 230, 202, 0.28);
  background: rgba(10, 10, 10, 0.55);
  color: #f5e6ca;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-info-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.contact-info-label {
  font-family: "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 230, 202, 0.7);
}

.contact-info-value {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
  text-decoration: none;
}

a.contact-info-value:hover {
  color: #f5e6ca;
}

.contact-map {
  margin-top: 18px;
  position: relative;
  border: 1px solid rgba(245, 230, 202, 0.14);
  background: #0a0a0a;
  overflow: hidden;
}

.contact-map::after {
  content: "";
  position: absolute;
  inset: 0 0 40px 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.12) 0%,
    rgba(10, 10, 10, 0.08) 40%,
    rgba(10, 10, 10, 0.35) 100%
  );
  mix-blend-mode: multiply;
  z-index: 1;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  filter: grayscale(1) contrast(1.15) brightness(0.82);
  transition: filter 0.35s ease;
}

.contact-map:hover iframe {
  filter: grayscale(1) contrast(1.2) brightness(0.9);
}

.contact-map-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-top: 1px solid rgba(245, 230, 202, 0.12);
  color: #f5e6ca;
  font-family: "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(10, 10, 10, 0.92);
  transition: background 0.2s ease;
}

.contact-map-link::after {
  content: "↗";
  font-size: 12px;
}

.contact-map-link:hover {
  background: rgba(245, 230, 202, 0.08);
}

@media screen and (max-width: 575px) {
  .contact-map iframe {
    height: 210px;
  }
}

.contact-panel {
  position: relative;
  padding: 32px 34px 36px;
  border: 1px solid rgba(245, 230, 202, 0.16);
  background:
    radial-gradient(
      120% 80% at 100% 0%,
      rgba(245, 230, 202, 0.08) 0%,
      transparent 55%
    ),
    rgba(12, 12, 14, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.contact-form-head {
  margin-bottom: 26px;
}

.contact-form-head h3 {
  margin: 0 0 8px;
  font-family: "Sorts Mill Goudy", serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.5px;
}

.contact-form-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 230, 202, 0.85);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(245, 230, 202, 0.18);
  background: rgba(8, 8, 10, 0.72);
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  border-radius: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.contact-field textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(245, 230, 202, 0.55);
  background: rgba(8, 8, 10, 0.9);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-width: 180px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid #f5e6ca;
  background: #f5e6ca;
  color: #111;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.contact-submit:hover:not(:disabled) {
  background: transparent;
  color: #f5e6ca;
}

.contact-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.contact-success {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 280px;
  padding: 12px 4px;
}

.contact-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(245, 230, 202, 0.4);
  color: #f5e6ca;
  font-size: 20px;
}

.contact-success h3 {
  margin: 0 0 10px;
  font-family: "Sorts Mill Goudy", serif;
  font-size: 32px;
  color: #fff;
}

.contact-success p {
  margin: 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.6;
}

#contact-section .contact-form-error,
#contact-section .error {
  display: block;
  margin-top: 4px;
  color: #ff9b9b;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

/* Footer sits in normal page flow after main sections */
.container-page {
  position: relative;
}

.wrapper > .site-footer {
  margin-top: 0;
}

/* Hide legacy thin footer styles when site footer is active */
.footer:not(.site-footer):not(.cf-footer) {
  display: none;
}

/* Page loader — cream theme polish */
.site-preloader.preloader {
  background: #0a0a0a !important;
  z-index: 99999;
}

.site-preloader .site-preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-preloader .preloader-logo-img {
  width: 88px !important;
  height: auto !important;
  max-width: 88px;
  position: relative;
  z-index: 2;
}

.site-preloader-ring {
  position: absolute;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(245, 230, 202, 0.2);
  border-radius: 50%;
  z-index: 1;
  animation: site-preloader-pulse 1.6s ease-in-out infinite;
}

.site-preloader .spinner.spinner-line {
  border-width: 2px !important;
}

.site-preloader-text {
  margin: 28px 0 0;
  font-family: "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f5e6ca;
  position: relative;
  z-index: 2;
}

@keyframes site-preloader-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

/* Right-side scroll progress loader */
.scroll-progress-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(12px);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-progress-rail.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.scroll-progress-track {
  position: relative;
  width: 2px;
  height: 120px;
  background: rgba(245, 230, 202, 0.15);
  overflow: hidden;
}

.scroll-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: linear-gradient(180deg, #F5E6CA 0%, #E5C396 100%);
  box-shadow: 0 0 12px rgba(245, 230, 202, 0.35);
  transition: height 0.05s linear;
}

.scroll-progress-btn {
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(245, 230, 202, 0.35);
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #F5E6CA;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.scroll-progress-btn:hover {
  background: #F5E6CA;
  color: #111;
  border-color: #F5E6CA;
  transform: translateY(-2px);
}

.scroll-progress-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.scroll-progress-label {
  font-family: "Rubik", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(245, 230, 202, 0.7);
}

@media screen and (max-width: 767px) {
  .scroll-progress-rail {
    right: 10px;
  }

  .scroll-progress-track {
    height: 88px;
  }

  .scroll-progress-btn {
    width: 38px;
    height: 38px;
  }

  .scroll-progress-label {
    font-size: 9px;
  }
}

@media screen and (max-width: 991px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-aside-lead {
    max-width: none;
  }
}

@media screen and (max-width: 575px) {
  #contact-section.contact-section {
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .contact-panel {
    padding: 24px 20px 28px;
  }

  .contact-field-row {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
  }
}
