/**
 * Contact page — two-column info + form (no map).
 */

body.nucifera-contact-page,
body.nucifera-contact-page .nucifera-main {
  background: #ffffff !important;
  color: #111111;
}

body.nucifera-contact-page .nucifera-main {
  padding-bottom: 0;
}

.ncontact {
  --ncontact-ink: #111111;
  --ncontact-muted: #666666;
  --ncontact-line: #e8e8e8;
  --ncontact-soft: #f7f7f7;
  --ncontact-font: "Manrope", system-ui, sans-serif;
  --ncontact-display: "Playfair Display", Georgia, serif;
  background: #ffffff;
  color: var(--ncontact-ink);
  font-family: var(--ncontact-font);
}

.ncontact__shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
}

.ncontact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--ncontact-line);
  background: #ffffff;
}

.ncontact__info,
.ncontact__form-panel {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.ncontact__info {
  border-right: 1px solid var(--ncontact-line);
  display: flex;
  flex-direction: column;
}

.ncontact__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ncontact-muted);
}

body.nucifera-contact-page .ncontact__title,
.ncontact__title {
  margin: 0 0 1rem;
  font-family: var(--ncontact-display), "Playfair Display", Georgia, serif !important;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ncontact-ink) !important;
}

.ncontact__lede {
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ncontact-muted);
}

.ncontact__channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.ncontact__channel {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.ncontact__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ncontact-line);
  color: var(--ncontact-ink);
  background: #fff;
}

.ncontact__label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ncontact-muted);
}

.ncontact__value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ncontact-ink);
  text-decoration: none;
  line-height: 1.35;
}

a.ncontact__value:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ncontact__value--text {
  font-weight: 500;
  max-width: 28ch;
}

.ncontact__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--ncontact-muted);
}

.ncontact__social {
  list-style: none;
  margin: auto 0 0;
  padding: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ncontact__social a {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ncontact-line);
  color: var(--ncontact-ink);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.ncontact__social a:hover {
  background: var(--ncontact-ink);
  color: #ffffff;
}

body.nucifera-contact-page .ncontact__form-title,
.ncontact__form-title {
  margin: 0 0 0.55rem;
  font-family: var(--ncontact-display), "Playfair Display", Georgia, serif !important;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  color: var(--ncontact-ink) !important;
}

.ncontact__form-lede {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ncontact-muted);
}

.ncontact__notice {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--ncontact-line);
}

.ncontact__notice--ok {
  background: #f7f7f7;
  color: #111111;
}

.ncontact__notice--err {
  background: #fff8f8;
  border-color: #111111;
  color: #111111;
}

.ncontact__form {
  display: grid;
  gap: 1rem;
}

.ncontact__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.ncontact__field {
  display: grid;
  gap: 0.4rem;
}

.ncontact__field > span:first-child {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ncontact-muted);
}

.ncontact__field abbr {
  text-decoration: none;
  color: var(--ncontact-ink);
}

.ncontact__field input,
.ncontact__field select,
.ncontact__field textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  background: #ffffff;
  color: var(--ncontact-ink);
  font-family: var(--ncontact-font);
  font-size: 0.95rem;
  box-shadow: none;
  appearance: none;
}

.ncontact__field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.55;
}

.ncontact__field input::placeholder,
.ncontact__field textarea::placeholder {
  color: #a3a3a3;
}

.ncontact__field input:focus,
.ncontact__field select:focus,
.ncontact__field textarea:focus {
  outline: none;
  border-color: #111111;
  box-shadow: inset 0 0 0 1px #111111;
}

.ncontact__field.is-invalid input,
.ncontact__field.is-invalid select,
.ncontact__field.is-invalid textarea {
  border-color: #111111;
  box-shadow: inset 0 0 0 1px #111111;
}

.ncontact__select-wrap {
  position: relative;
  display: block;
}

.ncontact__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid #666;
  border-bottom: 1.5px solid #666;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.ncontact__select-wrap select {
  padding-right: 2.4rem;
  cursor: pointer;
}

.ncontact__submit {
  margin-top: 0.35rem;
  width: 100%;
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  font-family: var(--ncontact-font);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.ncontact__submit:hover {
  background: #2a2a2a;
}

.ncontact__submit:active {
  transform: scale(0.995);
}

/* Tablet: still two cols but tighter */
@media (max-width: 980px) {
  .ncontact__shell {
    padding-inline: 1.25rem;
  }

  .ncontact__info,
  .ncontact__form-panel {
    padding: 1.5rem;
  }

  .ncontact__title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }
}

/* Mobile app shell */
@media (max-width: 767px) {
  body.nucifera-contact-page .nucifera-header {
    background: #ffffff !important;
    color: #111111 !important;
    border-bottom: 1px solid #e8e8e8 !important;
  }

  body.nucifera-contact-page .nucifera-logo,
  body.nucifera-contact-page .nucifera-icon-btn {
    color: #111111 !important;
  }

  .ncontact__shell {
    padding: 1.25rem 1rem calc(1.5rem + var(--nucifera-bottom-nav-h, 4.5rem) + env(safe-area-inset-bottom, 0px));
  }

  .ncontact__grid {
    grid-template-columns: 1fr;
    border: 0;
    gap: 0;
  }

  .ncontact__info {
    border-right: 0;
    border-bottom: 1px solid var(--ncontact-line);
    padding: 0 0 1.5rem;
  }

  .ncontact__form-panel {
    padding: 1.5rem 0 0;
  }

  .ncontact__title {
    font-size: 1.85rem;
    max-width: 12ch;
  }

  .ncontact__lede {
    max-width: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .ncontact__channels {
    gap: 1.1rem;
  }

  .ncontact__channel {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .ncontact__icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .ncontact__social {
    padding-top: 1.5rem;
  }

  .ncontact__row--2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ncontact__field input,
  .ncontact__field select,
  .ncontact__field textarea {
    min-height: 3rem;
    font-size: 1rem; /* iOS zoom prevent */
  }

  .ncontact__submit {
    min-height: 3.25rem;
    position: sticky;
    bottom: calc(var(--nucifera-bottom-nav-h, 4.5rem) + 0.65rem + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
}
