/* Contact page — scoped under .page-contact */
.page-contact {
  background: #fff;
  --contact-hero-h: 500px;
  --contact-card-overlap: calc(var(--contact-hero-h) * 0.5);
}

.page-contact .header__nav a.is-active {
  color: #3a2418;
  font-weight: 600;
  border-bottom: 1px solid #3a2418;
  padding-bottom: 2px;
}

.page-contact .contact-hero {
  width: 100%;
  height: var(--contact-hero-h);
  min-height: 0;
  max-height: var(--contact-hero-h);
  position: relative;
  overflow: hidden;
  background: #102b3c;
  box-shadow: none;
}

.page-contact .contact-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-contact .contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 15, 25, 0.18), rgba(3, 18, 28, 0.25));
}

.page-contact .contact-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(48px, 6vw, 90px);
  padding-bottom: 0;
  pointer-events: none;
}

.page-contact .contact-hero-tag,
.page-contact .contact-hero-title {
  pointer-events: auto;
}

.page-contact .contact-hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(15, 62, 87, 0.9);
  color: #fff;
  font-size: 9px;
  box-shadow: 0 0.2px 0 0.3px #fff;
}

.page-contact .contact-hero-title {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(39px, 5vw, 70px);
  line-height: 1.1;
  letter-spacing: -1.39px;
}

.page-contact .contact-section {
  width: 100%;
  min-height: 510px;
  position: relative;
  padding: 0 20px 65px;
  margin-top: 0;
  background-color: #fffaf2;
  background-image:
    linear-gradient(45deg, rgba(215, 204, 184, 0.26) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(215, 204, 184, 0.26) 1px, transparent 1px);
  background-size: 83px 83px;
}

.page-contact .contact-card {
  width: min(910px, calc(100% - 30px));
  min-height: 380px;
  margin-inline: auto;
  position: relative;
  top: calc(-1 * var(--contact-card-overlap));
  margin-bottom: calc(-1 * var(--contact-card-overlap));
  padding: 7px;
  display: grid;
  grid-template-columns: 355px 1fr;
  gap: 20px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
  z-index: 10;
}

.page-contact .contact-image {
  min-height: 340px;
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: #16384a;
}

.page-contact .contact-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-contact .contact-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.25) 48%, rgba(0, 0, 0, 0.88) 100%);
}

.page-contact .contact-image-content {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 18px;
  bottom: 20px;
  color: #fff;
}

.page-contact .contact-image-title {
  margin-bottom: 6px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
}

.page-contact .contact-image-subtitle {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.page-contact .contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-contact .contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.page-contact .detail-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #e34d50;
}

.page-contact .detail-icon svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.page-contact .detail-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-contact .detail-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

.page-contact .detail-value {
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}

.page-contact .contact-form {
  position: relative;
  z-index: 11;
  display: flex;
  flex-direction: column;
  padding: 20px 15px 15px 1px;
}

.page-contact .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.page-contact .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.page-contact .form-group label {
  margin-bottom: 8px;
  color: #111;
  font-size: 11px;
  font-weight: 600;
}

.page-contact .required {
  color: #e34d50;
}

.page-contact .form-control {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #222;
  font-size: 11px;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.page-contact .form-control::placeholder {
  color: #898989;
}

.page-contact .form-control:focus {
  border-color: #777;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.page-contact textarea.form-control {
  height: 150px;
  padding: 13px 12px;
  resize: vertical;
}

.page-contact .send-button {
  width: 138px;
  height: 41px;
  align-self: flex-end;
  margin-top: 8px;
  border: none;
  border-radius: 7px;
  background: #111;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-contact .send-button:hover {
  background: #292929;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .page-contact .contact-card {
    grid-template-columns: 300px 1fr;
  }
}

@media (max-width: 700px) {
  .page-contact {
    --contact-hero-h: clamp(200px, calc(500 * 100vw / 1920), 440px);
    --contact-card-overlap: calc(var(--contact-hero-h) * 0.42);
  }

  .page-contact .contact-hero {
    height: var(--contact-hero-h);
    max-height: var(--contact-hero-h);
  }

  .page-contact .contact-hero-content {
    padding-top: clamp(32px, 8vw, 48px);
  }

  .page-contact .contact-section {
    min-height: auto;
    padding: 0 12px 50px;
  }

  .page-contact .contact-card {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px;
  }

  .page-contact .contact-image {
    min-height: 330px;
  }

  .page-contact .contact-form {
    padding: 24px 12px 14px;
  }

  .page-contact .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-contact textarea.form-control {
    height: 135px;
  }

  .page-contact .send-button {
    width: 100%;
  }
}

/* Response popup — replaces the native alert() with something that matches
   the rest of the site instead of looking like an OS dialog. */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 17, 15, 0.55);
  animation: contact-modal-fade 0.2s ease;
}

.contact-modal-overlay[hidden] {
  display: none;
}

@keyframes contact-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contact-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fffff3;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(17, 17, 15, 0.28);
  padding: 40px 32px 32px;
  text-align: center;
  animation: contact-modal-pop 0.25s ease;
}

@keyframes contact-modal-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: #6f675b;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}

.contact-modal-close:hover {
  background: rgba(58, 36, 24, 0.08);
  color: #3a2418;
}

.contact-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-icon svg {
  width: 28px;
  height: 28px;
}

.contact-modal--success .contact-modal-icon {
  background: rgba(58, 140, 90, 0.12);
  color: #2f8f5b;
}

.contact-modal--error .contact-modal-icon {
  background: rgba(191, 68, 52, 0.12);
  color: #bf4434;
}

.contact-modal-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  color: #1c140d;
  margin: 0 0 10px;
}

.contact-modal-text {
  font-size: 14px;
  line-height: 1.6;
  color: #6f675b;
  margin: 0 0 26px;
}

.contact-modal-btn {
  min-width: 130px;
  height: 42px;
  padding: 0 24px;
  border: none;
  border-radius: 7px;
  background: #111;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-modal-btn:hover {
  background: #292929;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .contact-modal {
    padding: 32px 22px 26px;
  }
}
