/* =========================================================
   elscii — Contact / Leave a Letter page
   Uses shared font and navigation variables from style.css.
   ========================================================= */
.contact-page {
    --contact-cream: #faf7f1;
    --contact-ink: #25211f;
    --contact-brown: #946b5c;
    --contact-orange: #ff9b6e;
    --contact-pink: #f7cbd7;
    --contact-mint: #c4dba0;
    background: var(--contact-cream);
    color: var(--contact-ink);
    font-family: var(--font-2);
}
.contact-page main { overflow: clip; padding-bottom: 28px; }
.contact-page p { font-family: var(--font-2); }

/* Part 1 — hero */
.contact-hero { padding: 0; background: var(--contact-cream); }
.contact-hero-frame {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: clamp(530px, 53.5vw, 890px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 0 4.5rem 4.5rem;
    background: #46382b url('../assets/contact/hero-bg.jpg') center 52% / cover no-repeat;
}
.contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 42%, rgba(0,0,0,.55) 100%);
}
.contact-hero-copy {
    position: absolute;
    z-index: 4;
    top: 30%;
    right: clamp(28px, 8.3vw, 140px);
    width: min(53%, 850px);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.contact-hero-copy h1 {
    margin: 0 0 clamp(24px, 3.2vw, 55px);
    font-family: var(--font-1);
    font-size: clamp(2.8rem, 6vw, 6.4rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.025em;
}
.contact-hero-copy p {
    max-width: 760px;
    margin-inline: auto;
    font-size: clamp(1.12rem, 1.6vw, 1.8rem);
    line-height: 1.5;
    letter-spacing: .035em;
}
.contact-hero-avatar {
    position: absolute;
    z-index: 2;
    width: clamp(300px, 34vw, 570px);
    max-height: 98%;
    object-fit: contain;
    object-position: bottom;
    left: clamp(12px, 8.2vw, 145px);
    bottom: -3px;
    filter: drop-shadow(0 10px 5px rgba(0,0,0,.2));
    animation: contact-avatar-arrive .9s cubic-bezier(.2,.8,.2,1) both;
}
.contact-leaves { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
.contact-leaf {
    position: absolute;
    top: -32px;
    left: var(--left);
    width: var(--size);
    height: calc(var(--size) * .58);
    border-radius: 100% 0 100% 0;
    background: var(--leaf-color);
    opacity: .9;
    transform: rotate(var(--tilt));
    animation: contact-leaf-fall var(--duration) var(--delay) linear infinite;
}

/* Part 2 — letter form and contact choices */
.contact-content {
    width: min(1440px, calc(100% - 64px));
    margin-inline: auto;
    padding: clamp(68px, 8vw, 125px) 0 clamp(95px, 10vw, 150px);
}
.contact-intro { max-width: 900px; margin: 0 auto clamp(42px, 5vw, 76px); text-align: center; }
.contact-eyebrow { margin: 0 0 14px; color: #d98561; font-size: 1.1rem; letter-spacing: .09em; }
.contact-intro h2 { margin: 0 0 20px; font-family: var(--font-1); font-size: clamp(2rem, 4.1vw, 4.2rem); line-height: 1.15; }
.contact-intro > p:last-child { max-width: 760px; margin: 0 auto; font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.55; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(34px, 5.5vw, 82px); align-items: start; }

/* Clipboard board: intentionally illustrative, not a plain corporate form */
.clipboard-wrap {
    position: relative;
    isolation: isolate;
    padding: 24px;
    border: 5px solid #8b6759;
    border-radius: 15px;
    background: #d6b5a2;
    box-shadow: 12px 14px 0 rgba(86, 62, 52, .13), 0 18px 38px rgba(67, 48, 40, .12);
    transform: rotate(-.45deg);
}
.clipboard-clip {
    position: absolute;
    z-index: 3;
    top: -17px;
    left: 50%;
    width: 122px;
    height: 34px;
    transform: translateX(-50%);
    border: 4px solid #8b6759;
    border-radius: 12px 12px 8px 8px;
    background: linear-gradient(#f7dfca 0 36%, #c79d85 36% 52%, #f5dfcc 52%);
    box-shadow: 0 4px 0 rgba(80,55,44,.12);
}
.clipboard-clip span { position: absolute; width: 35px; height: 6px; left: 50%; top: 7px; transform: translateX(-50%); border-radius: 99px; background: #a7806c; }
.clipboard-paper { position: relative; padding: clamp(24px, 3vw, 42px); border-radius: 12px; background: repeating-linear-gradient(to bottom, #fffefa 0, #fffefa 35px, #e8e8f2 36px, #fffefa 37px); }
.paper-heading { display: flex; align-items: center; gap: 17px; padding-bottom: 18px; border-bottom: 2px dashed #e9c9cf; }
.paper-sticker { display: grid; place-items: center; flex: 0 0 53px; width: 53px; height: 53px; border: 2px solid #efb8c7; border-radius: 50%; background: #ffe6ed; color: #d97f9b; font-size: 2rem; transform: rotate(-10deg); }
.paper-kicker { margin: 0 0 4px; color: #b27b68; font-size: .8rem; letter-spacing: .13em; }
.paper-heading h3 { margin: 0; font-family: var(--font-1); font-size: clamp(1.6rem, 2.5vw, 2.35rem); }
.form-intro { margin: 18px 0 25px; color: #66534b; font-size: 1.08rem; line-height: 1.5; }
.letter-form { display: grid; gap: 19px; }
.letter-form label { display: grid; gap: 8px; color: #57453d; font-size: 1.08rem; }
.letter-form label > span:not(.optional) { display: inline; color: #e58ea6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.letter-form input, .letter-form select, .letter-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    border: 1.5px solid #e2c9bf;
    border-radius: 12px;
    padding: 13px 14px;
    background: rgba(255,255,255,.91);
    color: #322923;
    font: 1rem var(--font-2);
    box-shadow: 0 2px 0 rgba(135, 96, 79, .04);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.letter-form textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.letter-form input:focus, .letter-form select:focus, .letter-form textarea:focus { outline: none; border-color: #e99db1; box-shadow: 0 0 0 3px rgba(233,157,177,.2); }
.letter-form input::placeholder, .letter-form textarea::placeholder { color: #a99a91; }
.optional { color: #9b8c83; font-size: .9rem; }
.send-letter-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 13px 22px;
    border: 2px solid #d98ca2;
    border-radius: 15px;
    background: #f5c8d5;
    color: #392b2b;
    box-shadow: 0 5px 0 #dca3b1;
    font: 600 1.15rem var(--font-1);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.send-letter-button:hover { background: #f8d7df; transform: translateY(-2px); box-shadow: 0 7px 0 #dca3b1; }
.send-letter-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #dca3b1; }
.form-footnote { margin: -5px 0 0; color: #83746d; font-size: .9rem; line-height: 1.4; text-align: center; }
.form-status { margin: 0; color: #6d8f48; font-size: 1rem; text-align: center; }
.clipboard-sparkle { position: absolute; z-index: 2; color: #ef9bb0; font-size: 2rem; text-shadow: 0 2px 0 #fff; }
.sparkle-one { top: 40px; right: -19px; transform: rotate(15deg); }
.sparkle-two { bottom: 40px; left: -18px; font-size: 2.5rem; transform: rotate(-16deg); }

.contact-side { display: grid; gap: 20px; padding-top: 14px; }
.side-note { position: relative; padding: 26px 27px; border-radius: 20px; box-shadow: 0 9px 24px rgba(70,48,38,.08); }
.note-pink { background: #f8dce3; transform: rotate(1deg); }
.note-cream { background: #fff0dc; transform: rotate(-1deg); }
.note-icon { display: block; margin-bottom: 7px; font-size: 2rem; }
.side-note h3 { margin: 0 0 9px; font-family: var(--font-1); font-size: 1.45rem; }
.side-note p { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.note-tape { position: absolute; top: -10px; left: 42%; width: 85px; height: 22px; background: rgba(242,193,133,.7); transform: rotate(3deg); }
.note-signoff { display: block; margin-top: 18px; color: #b87960; font-size: 1.1rem; text-align: right; }
.contact-method { display: flex; align-items: center; gap: 14px; padding: 19px 17px; border: 2px solid #eee0d5; border-radius: 18px; background: #fffdfa; color: inherit; text-decoration: none; box-shadow: 0 7px 20px rgba(70,48,38,.055); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.contact-method:hover { transform: translateY(-3px); border-color: #e8b4bf; box-shadow: 0 12px 24px rgba(70,48,38,.09); }
.method-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 15px; background: #e2edcf; color: #526b3d; font-size: 1.8rem; }
.email-method .method-icon { background: #ffe5d2; color: #b36b4d; }
.method-copy { display: grid; gap: 4px; min-width: 0; }
.method-copy strong { font-family: var(--font-1); font-size: 1.05rem; font-weight: 500; }
.method-copy small { overflow-wrap: anywhere; color: #8b766a; font-size: .95rem; }
.method-arrow { margin-left: auto; color: #b9846f; font-size: 1.35rem; }

@keyframes contact-leaf-fall {
    0% { transform: translate3d(0,-30px,0) rotate(var(--tilt)); }
    45% { transform: translate3d(28px,48vh,0) rotate(calc(var(--tilt) + 130deg)); }
    100% { transform: translate3d(-18px,105vh,0) rotate(calc(var(--tilt) + 300deg)); }
}
@keyframes contact-avatar-arrive { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .contact-leaf, .contact-hero-avatar { animation: none !important; }
    .contact-method, .send-letter-button { transition: none; }
}
@media (max-width: 900px) {
    .contact-hero-frame { min-height: 690px; border-radius: 0 0 2.8rem 2.8rem; background-position: 46% center; }
    .contact-hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.48)); }
    .contact-hero-copy { top: 9%; left: 6%; right: 6%; width: auto; }
    .contact-hero-copy h1 { margin-bottom: 18px; font-size: clamp(2.7rem, 8vw, 4.8rem); }
    .contact-hero-copy p { max-width: 610px; font-size: clamp(1.05rem, 2.8vw, 1.35rem); }
    .contact-hero-avatar { width: clamp(300px, 58vw, 470px); max-height: 65%; left: 50%; transform: translateX(-50%); bottom: -4px; }
    @keyframes contact-avatar-arrive { from { opacity: 0; transform: translate(-50%,25px); } to { opacity: 1; transform: translate(-50%,0); } }
    .contact-layout { grid-template-columns: minmax(0, 1fr); max-width: 700px; margin-inline: auto; }
    .contact-side { grid-template-columns: 1fr 1fr; align-items: stretch; }
    .note-pink, .note-cream { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .contact-page main { padding-bottom: 14px; }
    .contact-hero-frame { min-height: 620px; border-radius: 0 0 2rem 2rem; background-position: 48% center; }
    .contact-hero-copy { top: 8%; left: 20px; right: 20px; }
    .contact-hero-copy h1 { font-size: clamp(2.5rem, 10vw, 3.7rem); }
    .contact-hero-copy p { font-size: 1.08rem; line-height: 1.45; }
    .contact-hero-avatar { width: min(90vw, 390px); max-height: 61%; }
    .contact-content { width: calc(100% - 32px); padding-top: 65px; padding-bottom: 95px; }
    .contact-intro { margin-bottom: 46px; }
    .contact-intro h2 { font-size: 2.15rem; }
    .contact-intro > p:last-child { font-size: 1.08rem; }
    .contact-layout { gap: 37px; }
    .clipboard-wrap { padding: 13px; border-width: 4px; border-radius: 21px; }
    .clipboard-paper { padding: 23px 16px 20px; }
    .clipboard-clip { width: 100px; }
    .paper-heading { gap: 11px; }
    .paper-sticker { flex-basis: 43px; width: 43px; height: 43px; font-size: 1.6rem; }
    .paper-heading h3 { font-size: 1.5rem; }
    .form-row { grid-template-columns: 1fr; gap: 19px; }
    .letter-form input, .letter-form select, .letter-form textarea { font-size: 1rem; }
    .contact-side { grid-template-columns: 1fr; }
    .note-pink, .note-cream { grid-column: auto; }
    .contact-method { padding: 16px 13px; }
    .method-copy strong { font-size: 1rem; }
    .method-copy small { font-size: .9rem; }
}
