/* ═══════════════════════════════════════════════════════════
   MELIORAS · CONTACT PAGE
   Warm, personal, minimal. Built on styles.css tokens.
═══════════════════════════════════════════════════════════ */

.contact-page main {
  display: block;
  background: var(--paper);
}

/* ── Shared scroll-reveal (matches resources.js / .r-reveal) ── */
.r-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.r-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .r-reveal { opacity: 1; transform: none; transition: none; }
}

/* ════════════════════════════════════════════════════════
   SECTION 1 · HERO
═══════════════════════════════════════════════════════════ */
.con-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 20vh, 230px) clamp(20px, 6vw, 86px) clamp(50px, 7vw, 90px);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(176, 188, 160, 0.18), rgba(176, 188, 160, 0) 60%),
    linear-gradient(180deg, var(--paper-light) 0%, var(--paper) 100%);
  text-align: center;
}
.con-hero__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(720px, 90vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(38, 64, 52, 0.05), rgba(38, 64, 52, 0) 70%);
  pointer-events: none;
}
.con-hero__inner {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
}
.con-hero__title {
  margin: 6px auto 0 !important;
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem) !important;
  line-height: 1.08 !important;
}
.con-hero__lead {
  width: min(520px, 100%);
  margin: clamp(22px, 3vw, 30px) auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════
   SECTION 2 · CONTACT FORM
═══════════════════════════════════════════════════════════ */
.con-form-section {
  padding: clamp(20px, 4vw, 50px) clamp(20px, 6vw, 86px) clamp(80px, 10vw, 130px);
}
.con-form {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper-light);
  box-shadow: 0 24px 70px rgba(30, 47, 36, 0.06);
}
.con-field {
  margin-bottom: clamp(20px, 2.4vw, 26px);
}
.con-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.con-field input,
.con-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(31, 51, 40, 0.14);
  border-radius: 14px;
  background: rgba(253, 252, 244, 0.7);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}
.con-field textarea {
  resize: vertical;
  min-height: 130px;
}
.con-field input::placeholder,
.con-field textarea::placeholder {
  color: rgba(107, 122, 106, 0.7);
}
.con-field input:hover,
.con-field textarea:hover {
  border-color: rgba(31, 51, 40, 0.26);
}
.con-field input:focus,
.con-field textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  background: var(--milk);
  box-shadow: 0 0 0 4px rgba(38, 64, 52, 0.08);
}
.con-form__btn {
  width: 100%;
  margin-top: clamp(8px, 1vw, 12px);
}

/* ════════════════════════════════════════════════════════
   SECTION 3 · PERSONAL NOTE
═══════════════════════════════════════════════════════════ */
.con-note {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 86px);
  background: var(--paper-dark);
}
.con-note__inner {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  width: min(1040px, 100%);
  margin: 0 auto;
}
.con-note__portrait {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 64px rgba(30, 47, 36, 0.12);
}
.con-note__portrait img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.con-note__portrait:hover img {
  transform: scale(1.04);
}
.con-note__title {
  margin: 4px 0 0 !important;
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem) !important;
  line-height: 1.14 !important;
}
.con-note__text {
  max-width: 460px;
  margin: clamp(18px, 2vw, 24px) 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
  line-height: 1.74;
}
.con-note__sign {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: clamp(26px, 3vw, 34px);
}
.con-note__sign img {
  width: clamp(150px, 18vw, 200px);
  height: auto;
}
.con-note__sign span {
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════
   SECTION 4 · SIMPLE CTA
═══════════════════════════════════════════════════════════ */
.con-cta {
  padding: clamp(80px, 11vw, 150px) clamp(20px, 6vw, 86px);
  background:
    radial-gradient(110% 80% at 50% 120%, rgba(176, 188, 160, 0.16), rgba(176, 188, 160, 0) 60%),
    var(--paper);
  text-align: center;
}
.con-cta__inner {
  width: min(600px, 100%);
  margin: 0 auto;
}
.con-cta__title {
  margin: 6px auto 0 !important;
  color: var(--ink);
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1.12 !important;
}
.con-cta__lead {
  width: min(480px, 100%);
  margin: clamp(18px, 2vw, 24px) auto 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
  line-height: 1.7;
}
.con-cta__btn {
  margin-top: clamp(28px, 3vw, 38px);
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
  .con-note__inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 44px);
    max-width: 520px;
  }
  .con-note__portrait img {
    max-height: 420px;
  }
}
