/* ==========================================================================
   CONTACT PAGE (Figma "Contact Page" 1440 × 2653, mobile "iPhone 16 & 17 Pro - 2")
   Shared pieces (ticker, header, drawer, CTA banner, footer, modal) come from style.css.
   ========================================================================== */
.page-contact {
  background: #F8F9F4;
  color: #383838;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ct-container {
  max-width: 1332px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: content-box;
}

/* ---- Get in touch (Frame 2147238980) ---- */
.ct-intro {
  padding: 183px 0 80px;
}

.ct-intro-grid {
  display: grid;
  grid-template-columns: 631fr 666fr;
  gap: 35px;
  align-items: stretch;
}

.ct-intro-left {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.ct-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(44px, 4.45vw, 64px);
  line-height: 1.22;
  color: #383838;
  margin: 0;
}

.ct-hero-img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  aspect-ratio: 631 / 551;
  object-fit: cover;
  border-radius: 10px;
}

/* Frame 2147238956: form card */
.ct-card {
  display: flex;
  flex-direction: column;
  padding: 34px 33px;
  background: rgba(66, 45, 31, 0.05);
  border-radius: 10px;
}

.ct-card-intro {
  max-width: 599px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 19.5px;
  color: rgba(56, 56, 56, 0.8);
  margin: 0 0 48px;
}

.ct-form {
  display: flex;
  flex-direction: column;
}

.ct-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 27px;
  row-gap: 33px;
}

.ct-field {
  position: relative;
  display: block;
  border-bottom: 1px solid rgba(56, 56, 56, 0.2);
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  display: block;
  width: 100%;
  height: 35px;
  padding: 0 0 5px 5px;
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: #383838;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.ct-field ::placeholder {
  color: rgba(56, 56, 56, 0.75);
  opacity: 1;
}

.ct-field:focus-within {
  border-bottom-color: #422D1F;
}

.ct-field-select select {
  padding-right: 36px;
  cursor: pointer;
}

.ct-field-select select:invalid {
  color: rgba(56, 56, 56, 0.75);
}

.ct-select-arrow {
  position: absolute;
  right: 6px;
  top: 10px;
  pointer-events: none;
}

.ct-field-message {
  margin-top: 33px;
}

.ct-field-message textarea {
  height: 141px;
  padding-top: 0;
  resize: none;
}

.ct-field.is-invalid {
  border-bottom-color: #B3261E;
}

.ct-submit {
  align-self: flex-start;
  margin: 17px 0 0 -3px;
  padding: 10px 17px;
  background: transparent;
  border: 1.5px solid rgba(56, 56, 56, 0.5);
  border-radius: 2px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #383838;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.ct-submit:hover {
  background: #422D1F;
  border-color: #422D1F;
  color: #F8F9F4;
}

.ct-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Contact strip: 165 × 99 photo + brown details panel */
.ct-strip {
  display: grid;
  grid-template-columns: 165fr 427fr;
  gap: 7px;
  margin-top: 32px;
  min-height: 99px;
}

.ct-strip-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-strip-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 16px 19px;
  background: #422D1F;
}

.ct-strip-row {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #F8F9F4;
  text-decoration: none;
}

.ct-strip-row a {
  color: inherit;
  text-decoration: none;
}

.ct-strip-row svg {
  flex-shrink: 0;
}

/* ---- Benefits + map (Frame 2147239046): 1386 wide, hairline grid ---- */
.ct-benefits {
  padding: 0 27px 70px;
}

.ct-benefits-grid {
  display: grid;
  grid-template-columns: 348fr 347fr 693fr;
  grid-template-rows: 211px 211px;
  max-width: 1386px;
  margin: 0 auto;
  border-top: 1px solid #B5B5B5;
  border-left: 1px solid #B5B5B5;
}

.ct-benefit,
.ct-map {
  border-right: 1px solid #B5B5B5;
  border-bottom: 1px solid #B5B5B5;
}

.ct-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  text-align: center;
}

.ct-benefit h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 19.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #383838;
  margin: 0;
}

.ct-benefit p {
  max-width: 232px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #383838;
  margin: 0;
}

/* Benefit order in the markup is row-major; place them like Figma (column pairs) */
.ct-benefit:nth-child(1) { grid-column: 1; grid-row: 1; }
.ct-benefit:nth-child(2) { grid-column: 2; grid-row: 1; }
.ct-benefit:nth-child(3) { grid-column: 1; grid-row: 2; }
.ct-benefit:nth-child(4) { grid-column: 2; grid-row: 2; }

.ct-map {
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 8px;
}

.ct-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 1px solid #B5B5B5;
  filter: grayscale(0.15);
}

/* ---- FAQ (Frame 2147239054) ---- */
.ct-faq {
  padding: 0 0 70px;
}

.ct-faq-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.22;
  color: #383838;
  margin: 0 0 50px;
}

.ct-faq-grid {
  display: grid;
  grid-template-columns: 601fr 666fr;
  gap: 65px;
  align-items: start;
}

.ct-faq-img {
  display: block;
  width: 100%;
  aspect-ratio: 601 / 427;
  object-fit: cover;
}

.ct-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(66, 45, 31, 0.05);
  border-radius: 3px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 33px;
  width: 100%;
  padding: 16px 36px 16px 37px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 26.8px;
  color: #383838;
}

/* + / − icon drawn with two bars */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: #383838;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-answer > p {
  overflow: hidden;
  min-height: 0;
  max-width: calc(534px + 37px);
  padding: 0 0 0 37px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22.5px;
  color: rgba(56, 56, 56, 0.6);
  margin: 0;
  transition: padding 0.35s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer > p {
  padding-bottom: 19px;
}

.faq-item.is-open .faq-question {
  padding-top: 19px;
  padding-bottom: 10px;
}

/* The CTA banner only appears in the mobile design */
.ct-cta {
  display: none;
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) {
  .ct-intro-grid,
  .ct-faq-grid {
    grid-template-columns: 1fr;
  }
  .ct-hero-img {
    flex: none;
  }
  .ct-benefits-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 360px;
  }
  .ct-benefit {
    min-height: 211px;
  }
  .ct-map {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
}

/* ==========================================================================
   Phone (Figma "iPhone 16 & 17 Pro - 2", 402 wide)
   ========================================================================== */
@media (max-width: 602px) {
  .ct-container {
    padding: 0 23px;
  }

  .ct-intro {
    padding: 124px 0 36px;
  }
  .ct-intro-grid {
    gap: 15px;
  }
  .ct-intro-left {
    gap: 20px;
  }
  .ct-title {
    font-size: 36px;
    line-height: 43.9px;
  }
  .ct-hero-img {
    aspect-ratio: 357 / 269;
    border-radius: 5.66px;
  }

  .ct-card {
    padding: 18px;
    border-radius: 5.36px;
  }
  .ct-card-intro {
    font-size: 12px;
    line-height: 14.6px;
    margin-bottom: 20px;
  }
  .ct-form-grid {
    column-gap: 14px;
    row-gap: 15px;
  }
  .ct-field {
    border-bottom-width: 0.54px;
  }
  .ct-field input,
  .ct-field select,
  .ct-field textarea {
    height: 27px;
    padding: 0 0 4px 3px;
    font-size: 14px;
    line-height: 21px;
  }
  /* Keep iOS from zooming in on focus (it zooms below 16px) while matching the design size */
  @supports (-webkit-touch-callout: none) {
    .ct-field input,
    .ct-field select,
    .ct-field textarea {
      font-size: 16px;
    }
  }
  .ct-select-arrow {
    width: 12px;
    top: 9px;
    right: 2px;
  }
  .ct-field-message {
    margin-top: 15px;
  }
  .ct-field-message textarea {
    height: 76px;
  }
  .ct-submit {
    margin: 15px 0 0;
    padding: 5px 13px;
    border-width: 0.8px;
    font-size: 12px;
    line-height: 18px;
  }
  .ct-strip {
    grid-template-columns: 89fr 229fr;
    gap: 4px;
    margin-top: 20px;
    min-height: 65px;
  }
  .ct-strip-details {
    gap: 10px;
    padding: 10px;
  }
  .ct-strip-row {
    gap: 10px;
    font-size: 11px;
    line-height: 16.5px;
  }
  .ct-strip-row svg {
    width: 16px;
    height: 16px;
  }

  /* Map first, full-bleed, then the 2 × 2 benefit grid */
  .ct-benefits {
    padding: 0 0 36px;
  }
  .ct-benefits-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 323px auto auto;
    max-width: none;
    border: none;
  }
  .ct-map {
    grid-column: 1 / span 2;
    grid-row: 1;
    padding: 0;
    border: none;
    margin-bottom: 36px;
  }
  .ct-map iframe {
    min-height: 0;
    border: none;
  }
  .ct-benefit {
    min-height: 167px;
    gap: 10px;
    padding: 18px 0;
  }
  .ct-benefit p {
    max-width: 176px;
  }
  .ct-benefit:nth-child(1) { grid-column: 1; grid-row: 2; margin-left: 23px; border-left: 1px solid #B5B5B5; border-top: 1px solid #B5B5B5; }
  .ct-benefit:nth-child(2) { grid-column: 2; grid-row: 2; margin-right: 23px; border-top: 1px solid #B5B5B5; }
  .ct-benefit:nth-child(3) { grid-column: 1; grid-row: 3; margin-left: 23px; border-left: 1px solid #B5B5B5; }
  .ct-benefit:nth-child(4) { grid-column: 2; grid-row: 3; margin-right: 23px; }
  .ct-benefit svg {
    width: 22px;
    height: 22px;
  }
  .ct-benefit h3 {
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.84px;
    white-space: nowrap;
  }
  .ct-benefit p {
    font-size: 12px;
    line-height: 18px;
  }

  .ct-faq {
    padding: 0 0 60px;
  }
  .ct-faq .ct-container {
    padding: 0 21px;
  }
  .ct-faq-title {
    font-size: 24px;
    line-height: 29.3px;
    text-align: center;
    margin-bottom: 15px;
  }
  .ct-faq-img {
    display: none;
  }
  .faq-question {
    gap: 16px;
    padding: 16px 13px;
    font-size: 14px;
    line-height: 17px;
  }
  .faq-icon {
    width: 18px;
    height: 18px;
  }
  .faq-icon::before,
  .faq-icon::after {
    width: 14px;
    height: 1.5px;
  }
  .faq-answer > p {
    max-width: calc(284px + 13px);
    padding: 0 0 0 13px;
    font-size: 12px;
    line-height: 18px;
  }
  .faq-item.is-open .faq-question {
    padding-top: 20px;
    padding-bottom: 10px;
  }
  .faq-item.is-open .faq-answer > p {
    padding-bottom: 20px;
  }

  .ct-cta {
    display: block;
  }
}
