/* ==========================================================================
   CONTACT — "The Letter" · writing a note to Dr. Gargee
   Bespoke layer for contact.html. Warm rosewood/cream palette only.
   Progressive enhancement: js/contact.js adds `.ct-js` (motion) and
   `.ct-widgets` (warmth meter); without JS the page is fully usable —
   the form works via main.js, envelope shown open, everything visible.
   ========================================================================== */

.ct-act { position: relative; overflow: hidden; }

/* --------------------------------------------------------------------------
   1. HERO — an envelope opens
-------------------------------------------------------------------------- */
.ct-hero {
    position: relative;
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 120px 0 44px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 50% 18%, rgba(252, 219, 216, 0.6) 0%, transparent 60%),
        radial-gradient(85% 120% at 50% -8%, var(--sand) 0%, var(--cream) 48%, var(--cream-2) 100%);
}
.ct-hero .container { position: relative; z-index: 2; }
.ct-hero .breadcrumb { justify-content: center; }
.ct-hero h1 em { font-style: italic; color: var(--rosewood); }
.ct-hero .page-hero-sub { color: var(--rosewood); }

.ct-hero-aura {
    position: absolute; z-index: 0;
    top: 44%; left: 50%;
    width: min(680px, 90vw); aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 238, 208, 0.9) 0%, rgba(252, 219, 216, 0.42) 45%, transparent 70%);
    animation: ct-aura 7s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ct-aura {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* the little envelope beneath the headline */
.ct-envelope { width: 190px; margin: 38px auto 0; display: block; overflow: visible; }
.ct-env-back { fill: var(--cream-2); stroke: var(--gold); stroke-width: 1.5; }
.ct-env-letter { fill: #fffaf3; stroke: rgba(201, 160, 111, 0.6); stroke-width: 1.2; }
.ct-env-line { stroke: rgba(91, 58, 68, 0.28); stroke-width: 2; stroke-linecap: round; }
.ct-env-heart { fill: var(--rosewood); }
.ct-env-front { fill: var(--peach); stroke: var(--gold); stroke-width: 1.5; }
.ct-env-flap { fill: var(--sand); stroke: var(--gold); stroke-width: 1.5; }

.ct-scroll-cue {
    display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
    margin-top: 44px;
    text-decoration: none;
    font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--muted);
    transition: color 0.4s var(--ease);
}
.ct-scroll-cue::after {
    content: '';
    width: 1px; height: 48px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: ct-cue 2.4s ease-in-out infinite;
}
.ct-scroll-cue:hover { color: var(--rosewood); }
@keyframes ct-cue {
    0%, 100% { transform: scaleY(0.55); transform-origin: top; opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   2. THE LETTER — info + stationery form
-------------------------------------------------------------------------- */
.ct-write {
    background:
        radial-gradient(70% 90% at 90% 8%, rgba(252, 219, 216, 0.5) 0%, transparent 60%),
        var(--sand);
}
.ct-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }

.ct-info .eyebrow { color: var(--gold); }
.ct-info .lead {
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6;
    color: var(--rosewood); margin: 4px 0 26px;
}

/* contact ways as soft cards */
.ct-ways { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.ct-way {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 250, 243, 0.8);
    border: 1px solid rgba(201, 160, 111, 0.35);
    border-radius: 16px;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.ct-way:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(79, 47, 57, 0.12); border-color: rgba(201, 160, 111, 0.7); }
.ct-way-icon {
    flex: 0 0 46px; width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--rosewood);
    background: radial-gradient(circle at 50% 40%, var(--sand), var(--cream));
    box-shadow: inset 0 0 0 1px rgba(201, 160, 111, 0.4);
}
.ct-way small { display: block; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2px; }
.ct-way a, .ct-way .ct-way-val { color: var(--ink); font-size: 0.98rem; text-decoration: none; }
.ct-way a:hover { color: var(--rosewood); }

.ct-info .whatsapp-btn { width: 100%; justify-content: center; margin-top: 16px; }

/* the stationery */
.ct-paper {
    position: relative;
    background: #fffaf3;
    border: 1px solid rgba(201, 160, 111, 0.45);
    border-radius: 22px;
    padding: 44px 42px 38px;
    box-shadow: 0 34px 80px rgba(79, 47, 57, 0.16);
}
.ct-paper::before {
    content: '';
    position: absolute; inset: 10px;
    border: 1px solid rgba(201, 160, 111, 0.22);
    border-radius: 14px;
    pointer-events: none;
}
/* postage stamp */
.ct-stamp {
    position: absolute; top: 22px; right: 24px;
    width: 54px; height: 62px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px dashed rgba(201, 160, 111, 0.65);
    border-radius: 6px;
    color: var(--gold);
    font-size: 1.2rem;
    transform: rotate(4deg);
    background: rgba(255, 238, 208, 0.4);
}
.ct-salutation {
    font-family: var(--font-display); font-style: italic;
    font-size: 1.7rem; color: var(--rosewood);
    margin-bottom: 22px;
}
.ct-paper .form-group label { color: var(--rosewood); }

/* channel selector (WhatsApp vs Email) */
.ct-channel-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}
.ct-channel-opt {
    position: relative;
    cursor: pointer;
    margin: 0 !important;
}
.ct-channel-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ct-channel-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: var(--radius-sm, 10px);
    border: 1.5px solid rgba(201, 160, 111, 0.45);
    background: rgba(255, 252, 246, 0.85);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}
.ct-channel-box svg {
    color: var(--rosewood);
    transition: transform 0.25s ease;
}
.ct-channel-opt:hover .ct-channel-box {
    border-color: var(--rosewood);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 47, 57, 0.08);
}
.ct-channel-opt input[type="radio"]:checked + .ct-channel-box {
    border-color: var(--rosewood);
    background: rgba(252, 219, 216, 0.5);
    color: var(--rosewood);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(168, 75, 100, 0.15);
}
.ct-channel-opt input[type="radio"]:checked + .ct-channel-box svg {
    transform: scale(1.1);
}

/* warmth meter — hearts light as the note takes shape */
.ct-warmth {
    display: none;
    align-items: center; gap: 12px;
    margin: 4px 0 18px;
    padding: 12px 16px;
    background: rgba(252, 219, 216, 0.35);
    border-radius: 12px;
}
body.ct-widgets .ct-warmth { display: flex; }
.ct-warmth-hearts { display: flex; gap: 6px; }
.ct-warmth-hearts span {
    font-size: 0.95rem;
    color: rgba(91, 58, 68, 0.22);
    transition: color 0.5s var(--ease), transform 0.5s var(--ease);
}
.ct-warmth-hearts span.is-lit { color: var(--rosewood); transform: scale(1.18); }
.ct-warmth-text { font-size: 0.8rem; color: var(--muted); font-style: italic; }

.ct-paper .btn-full { margin-top: 6px; }

/* sending note under the button */
.ct-ps {
    margin-top: 16px;
    text-align: center;
    font-size: 0.82rem; color: var(--muted); font-style: italic;
}

/* --------------------------------------------------------------------------
   3. WHAT HAPPENS NEXT — a short thread
-------------------------------------------------------------------------- */
.ct-next { background: var(--surface); }
.ct-next .section-header { margin-bottom: 48px; }
.ct-next-track { position: relative; max-width: 880px; margin: 0 auto; }
.ct-next-svg { width: 100%; height: 70px; overflow: visible; display: block; }
.ct-next-base { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-dasharray: 2 8; stroke-linecap: round; }
.ct-next-line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.ct-next-dot { fill: #fffaf3; stroke: var(--gold); stroke-width: 2.2; }
.ct-next-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 8px; }
.ct-next-card { text-align: center; padding: 0 14px; }
.ct-next-num { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--rosewood); display: block; margin-bottom: 6px; }
.ct-next-card h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ct-next-card p { color: var(--text-soft); font-size: 0.93rem; line-height: 1.65; margin: 0; }

/* --------------------------------------------------------------------------
   4. RESPONSIVE
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ct-grid { gap: 48px; }
    .ct-paper { padding: 38px 32px 32px; }
}
@media (max-width: 900px) {
    .ct-hero { min-height: auto; padding: 150px 0 56px; }
    .ct-grid { grid-template-columns: 1fr; gap: 44px; }
    .ct-paper { padding: 36px 26px 30px; }
    .ct-next-svg { display: none; }
    .ct-next-cards { grid-template-columns: 1fr; gap: 24px; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 600px) {
    .ct-hero { padding: 132px 0 48px; }
    .ct-envelope { width: 150px; margin-top: 30px; }
    .ct-scroll-cue { margin-top: 34px; }
    .ct-paper { padding: 32px 20px 26px; }
    .ct-stamp { width: 46px; height: 52px; top: 16px; right: 16px; font-size: 1rem; }
    .ct-salutation { font-size: 1.45rem; margin-bottom: 18px; }
    .ct-way { padding: 14px 16px; gap: 13px; }
    .ct-way a, .ct-way .ct-way-val { font-size: 0.92rem; overflow-wrap: anywhere; }
    .whatsapp-btn { width: 100%; justify-content: center; }
    .ct-warmth { flex-wrap: wrap; gap: 8px 12px; }
}
@media (max-width: 380px) {
    .ct-paper { padding: 28px 16px 22px; }
    .ct-way-icon { flex-basis: 40px; width: 40px; height: 40px; }
}

/* --------------------------------------------------------------------------
   5. REDUCED MOTION
-------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ct-hero-aura, .ct-scroll-cue::after { animation: none; }
    .ct-way, .ct-warmth-hearts span { transition: none; }
}
