/* Contact Page Specific Styles */

/* General improvements for contact page */
.mainContainer {
  padding-top: 2em;
}

/* Reduce horizontal padding for contact page */
@media (min-width: 992px) {
  .mainContainer {
    padding-left: 6em !important;
    padding-right: 6em !important;
  }
}

@media (min-width: 1200px) {
  .mainContainer {
    padding-left: 8em !important;
    padding-right: 8em !important;
  }
}

/* Contact Header Section */
.contact-header-section {
  margin: 3em 0 4em;
  padding: 0 1em;
}

.contact-info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5em 2em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-logo {
  margin-bottom: 1.5em;
}

.contact-logo .logoContact {
  width: 40%;
  min-width: 12em;
  max-width: 200px;
  height: auto;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact-name {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: "Roboto-Medium";
  color: #2c2c2c;
  margin-bottom: 0.5em;
}

.contact-item {
  font-size: 14px;
  line-height: 1.6;
}

.contact-link {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #c67351;
}

.contact-address {
  color: #555;
  font-weight: 500;
}

.contact-social-icons {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
  flex-wrap: wrap;
}

.social-icon {
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: inline-block;
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.social-icon img {
  transition: opacity 0.3s ease;
  display: block;
}

/* Houzz icon needs to be black */
.social-icon img[src*="houzz"] {
  filter: brightness(0);
}

/* Company Info Card */
.company-info-card {
  background: #fafafa;
  border-radius: 16px;
  padding: 2.5em 2em;
  height: 100%;
}

.info-section {
  margin-bottom: 2em;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-text {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
  margin: 0;
}

.legal-info {
  background: #ffffff;
  padding: 1.5em;
  border-radius: 8px;
  border-left: 3px solid #e1ceb6;
}

.legal-text {
  font-size: 12px;
  line-height: 1.8;
  color: #666;
  font-style: italic;
  margin: 0;
}

.legal-text strong {
  font-style: normal;
  color: #2c2c2c;
}

/* Certification Sections */
.certification-section {
  background: #ffffff;
  padding: 1.5em;
  border-radius: 12px;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.certification-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

.certification-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.certification-logo:hover {
  transform: scale(1.05);
}

.certification-logo img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

.certification-text {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  text-align: center;
  margin: 0;
}

/* Accompaniment Steps */
.accompaniment-steps {
  margin-top: 2em;
  padding-top: 2em;
  border-top: 1px solid #e0e0e0;
}

.steps-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 1.5em;
  text-align: center;
}

.step-item {
  display: flex;
  gap: 1em;
  margin-bottom: 1.5em;
  align-items: flex-start;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #e1ceb6;
  color: #2c2c2c;
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
}

.step-text {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  flex: 1;
}

/* Partners Section */
.partners-section {
  margin: 5em 0;
  padding: 0 1em;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  font-family: "Roboto-Medium";
  text-align: center;
  color: #2c2c2c;
  margin-bottom: 3em;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 1em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #e1ceb6;
  border-radius: 2px;
}

.partners-row {
  margin-top: 2em !important;
  align-items: stretch;
}

.partner-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5em 2em;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #f0f0f0;
  min-height: 100%;
}

/* Add gap between partner cards on web */
@media (min-width: 768px) {
  .partners-row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 2rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .partners-row>[class*="col-"] {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 1.334rem);
    max-width: calc(33.333% - 1.334rem);
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .partner-card {
    margin: 0;
    width: 100%;
  }
}

/* Ensure all partner cards have equal height */
.partners-row>[class*="col-"] {
  display: flex;
  flex-direction: column;
}

.partners-row>[class*="col-"]>.partner-card {
  flex: 1;
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #e1ceb6;
}

/* Photo wrapper */
.partner-photo-wrapper {
  margin-bottom: 1.5em;
}

.team-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #f8f8f8;
  margin-bottom: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.partner-card:hover .team-photo {
  transform: scale(1.05);
}

/* Partner header */
.partner-header {
  text-align: center;
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 2px solid #f5f5f5;
  width: 100%;
}

.partner-name {
  font-size: 1.4rem;
  font-weight: 600;
  font-family: "Roboto-Medium";
  color: #2c2c2c;
  margin: 0 0 0.5em 0;
  letter-spacing: 0.3px;
}

.partner-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #c67351;
  margin: 0;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Legacy support */
.partner-caption {
  font-weight: 600;
  font-size: 1.2rem;
  color: #2c2c2c;
  margin-bottom: 0.5em;
  text-align: center;
}

/* Partner description */
.partner-description {
  margin-bottom: 2em;
  width: 100%;
  flex-grow: 1;
  padding: 0 1.5em;
}

.partner-description p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1em;
  text-align: left;
}

.partner-description p:last-child {
  margin-bottom: 0;
}

.partner-description strong {
  color: #2c2c2c;
  font-weight: 600;
}

.partner-services {
  background: #fafafa;
  padding: 1em;
  border-radius: 8px;
  border-left: 3px solid #e1ceb6;
  margin-top: 1em;
  font-size: 13px;
}

/* Partner contact */
.partner-contact {
  width: 100%;
  margin-top: auto;
  padding-top: 1.5em;
  border-top: 1px solid #f0f0f0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2em;
  gap: 0.3em;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2em;
}

.contact-value {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value a {
  color: #c67351;
  text-decoration: none;
}

.contact-value:hover,
.contact-value a:hover {
  color: #b56341;
}

/* Legacy support for old structure */
.partner-info {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  width: 100%;
}

.partner-info>div {
  margin-bottom: 1em;
}

.partner-info>div:last-child {
  margin-bottom: 0;
}

.partner-info b,
.partner-info strong {
  color: #2c2c2c;
  font-weight: 600;
}

.partner-info a {
  color: #c67351;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  word-break: break-word;
}

.partner-info a:hover {
  color: #b56341;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 991px) {
  .contact-header-section {
    margin: 2em 0 3em;
  }

  .contact-info-card,
  .company-info-card {
    margin-bottom: 2em;
  }

  .certification-item {
    flex-direction: column;
  }

  .certification-logo img {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .contact-header-section {
    margin: 1.5em 0 2em;
    padding: 0;
  }

  .contact-info-card,
  .company-info-card {
    padding: 2em 1.5em;
  }

  .contact-name {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2em;
  }

  .team-photo {
    width: 150px;
    height: 150px;
  }

  .partner-card {
    padding: 2em 1.5em;
    margin-bottom: 2em;
  }

  .partner-name {
    font-size: 1.2rem;
  }

  .partner-title {
    font-size: 0.85rem;
  }

  .step-item {
    flex-direction: column;
    gap: 0.5em;
  }

  .step-number {
    align-self: flex-start;
  }

  .certification-text {
    text-align: left;
  }
}

@media (max-width: 576px) {

  .contact-info-card,
  .company-info-card {
    padding: 1.5em 1em;
  }

  .contact-logo .logoContact {
    min-width: 10em;
  }

  .contact-social-icons {
    gap: 0.8em;
  }

  .team-photo {
    width: 130px;
    height: 130px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2em;
  }

  .partner-card {
    padding: 1.5em 1em;
  }

  .partner-name {
    font-size: 1.1rem;
  }

  .partner-title {
    font-size: 0.8rem;
  }

  .partner-description p {
    font-size: 13px;
  }

  .certification-logo img {
    max-width: 120px;
  }
}

/* Legacy support for old HTML structure - improves existing a-propos sections */
.company-info-card .a-propos,
.col-lg-7 .a-propos,
.col-md-6 .a-propos {
  background: #ffffff;
  padding: 1.5em !important;
  border-radius: 12px;
  margin-bottom: 1.5em !important;
  border-left: 3px solid #e1ceb6 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: none !important;
}

.company-info-card .a-propos .row,
.col-lg-7 .a-propos .row,
.col-md-6 .a-propos .row {
  margin: 0;
  align-items: center;
}

.company-info-card .a-propos .row .col-md-5,
.company-info-card .a-propos .row .col-md-7,
.col-lg-7 .a-propos .row .col-md-5,
.col-lg-7 .a-propos .row .col-md-7 {
  padding: 0.5em;
}

.company-info-card .a-propos img,
.col-lg-7 .a-propos img,
.col-md-6 .a-propos img {
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
}

.company-info-card .a-propos a:hover img,
.col-lg-7 .a-propos a:hover img,
.col-md-6 .a-propos a:hover img {
  transform: scale(1.05);
}

/* Improve spacing for contact page */
.contact-logo {
  margin-bottom: 2em;
}

/* Better styling for the old structure text */
.company-info-card .a-propos p,
.col-lg-7 .a-propos p,
.col-md-6 .a-propos p {
  line-height: 1.8;
  color: #555;
}

.company-info-card .a-propos i,
.col-lg-7 .a-propos i,
.col-md-6 .a-propos i {
  font-style: italic;
  color: #666;
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .contact-logo {
    margin-top: 0 !important;
  }

  .company-info-card .a-propos,
  .col-lg-7 .a-propos,
  .col-md-6 .a-propos {
    padding: 1em !important;
    border-left: none !important;
    border-top: 3px solid #e1ceb6 !important;
  }

  .company-info-card .a-propos .row,
  .col-lg-7 .a-propos .row,
  .col-md-6 .a-propos .row {
    flex-direction: column;
  }
}