/* Built Houses Page Styles */

/* Fix main element alignment */
main.projects-page.element {
  align-items: center;
}

/* Add padding to footer on built houses page */
.element .footer {
  padding: 40px 15px 64px;
}

/* Footer info-box styles */
.footer .info-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.footer .privacy-policy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: var(--dark-9);
  border-radius: 24px;
}

/* Header container width fix for built houses page */
.header-white .container {
  max-width: 1312px !important;
}

/* Content wrappers for consistent width */
.hero-content,
.filters-content,
.grid-content {
  max-width: 1312px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

/* Container for content sections */
.container-content {
  max-width: 1342px;
  width: 100%;
  padding: 0px 15px;
  margin: 0px auto;
  position: relative;
}

/* Projects Hero Section */
.projects-hero {
  padding: 40px 0 20px !important;
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.02) 0%, rgba(248, 249, 250, 0) 100%);
  width: 100%;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.breadcrumb-link {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #6c757d;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #007bff;
}

.breadcrumb-separator {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #6c757d;
  font-size: 14px;
}

.breadcrumb-current {
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #212529;
  font-size: 14px;
}

.projects-title {
  color: var(--dark-9);
  font-family: var(--head-01-font-family);
  font-size: 40px;
  font-weight: 700;
  line-height: 130%;
  margin-bottom: 24px;
  max-width: 900px;
}

.examples-grid {
  display: flex;
  flex-direction: column;
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 20px;
}

.example-card {
  position: relative;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  /* Fallback gradient backgrounds for each card */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: flex-end;
  margin-bottom: 32px;
}

/* Individual card background gradients */
.example-card:nth-child(1) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%),
              url('img/built-houses/buid_1.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.example-card:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%),
              url('img/built-houses/buid_2.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.example-card:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%),
              url('img/built-houses/build_3.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.example-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.example-title {
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.btn-view-all:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-title {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .examples-section {
    padding: 60px 0;
  }
  
  .examples-grid {
    padding: 0 16px;
    gap: 24px;
  }
  
  .example-card {
    height: 280px;
    margin-bottom: 24px;
  }
  
  .example-content {
    padding: 24px;
    gap: 12px;
    text-align: left;
  }
  
  .example-title {
    font-size: 28px;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-align: left;
  }
  
  .example-subtitle {
    font-size: 16px;
    margin: 0 0 12px 0;
    text-align: left;
  }
  
  .btn-view-all {
    padding: 12px 24px;
    font-size: 15px;
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .projects-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .examples-section {
    padding: 0px 0;
  }
  
  .examples-grid {
    padding: 0 16px;
    gap: 20px;
  }
  
  .example-card {
    height: 240px;
    margin-bottom: 20px;
  }
  
  .example-content {
    padding: 20px;
    gap: 10px;
    text-align: left;
  }
  
  .example-title {
    font-size: 22px;
    margin: 0 0 6px 0;
    line-height: 1.2;
    text-align: left;
  }
  
  .example-subtitle {
    font-size: 14px;
    margin: 0 0 10px 0;
    text-align: left;
  }
  
  .btn-view-all {
    padding: 10px 20px;
    font-size: 14px;
    align-self: flex-start;
  }
}

/* CTA Section */
.cta-section {
  padding: 40px 0;
  background: #F8F9FA;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.cta-text {
  flex: 1;
  padding-right: 20px;
}

.cta-title {
  color: var(--dark-9);
  font-family: var(--head-02-font-family);
  font-size: 28px;
  font-weight: 600;
  line-height: 130%;
  margin-bottom: 16px;
}

.cta-description {
  color: var(--gray-7);
  font-family: var(--text-m-14-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  margin-bottom: 0;
}

.cta-form {
  flex: 1;
  padding-left: 20px;
}

.form-description {
  color: var(--dark-9);
  font-family: var(--head-02-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  margin-bottom: 16px;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.form-group {
  flex: 0 0 auto;
}

.form-group:first-child {
  flex: 0 0 220px;
}

.form-group:last-child {
  flex: 0 0 auto;
  margin-left: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-icon {
  position: absolute;
  left: 16px;
  color: #6c757d;
  z-index: 1;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: none;
  border-radius: 40px;
  font-family: var(--text-m-14-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  background: #f8f9fa;
  color: var(--dark-9);
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(252, 196, 25, 0.1);
}

.btn-submit-contact {
  padding: 16px 24px;
  border-radius: 16px;
  background: var(--yellow-5);
  color: var(--dark-9);
  font-family: var(--head-05-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: none;
}

.btn-submit-contact:hover {
  background: #e6a500;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230, 165, 0, 0.3);
}

/* Responsive для CTA */
@media (max-width: 768px) {
  .cta-content {
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px;
  }
  
  .cta-text {
    padding-right: 0;
    text-align: center;
  }
  
  .cta-form {
    padding-left: 0;
    width: 100%;
  }
  
  .contact-form {
    flex-direction: column;
    gap: 16px;
  }
  
  .form-group:first-child {
    flex: 1 1 auto;
    width: 100%;
  }
  
  .form-group:last-child {
    margin-left: 0;
    width: 100%;
  }
  
  .form-input {
    width: 100%;
  }
  
  .btn-submit-contact {
    width: 100%;
  }
}



