/* ==========================================================================
   Contact Ink Overlay — Static Cream Thread Backdrop
   ==========================================================================
   Full-page canvas behind all contact page content. Threads render at full
   coverage as textured cream backdrop. Content sections float above at z:1.
   Nav stays at z:1001+.

   Dependencies: contact-ink.js (sets canvas dimensions, drives parallax)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Canvas Positioning — Full-page absolute background
   -------------------------------------------------------------------------- */
.contact-ink-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
}

/* --------------------------------------------------------------------------
   Body Activation — Cream base (also serves as reduced-motion fallback)
   -------------------------------------------------------------------------- */
body.contact-ink-active {
    background: #F8F6EE;
    position: relative;
}

/* --------------------------------------------------------------------------
   Contact Hero — Dark-on-cream
   -------------------------------------------------------------------------- */
body.contact-ink-active .contact-hero {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

body.contact-ink-active .contact-hero-label {
    color: rgba(26, 26, 26, 0.5);
}

body.contact-ink-active .contact-hero-title {
    color: #1A1A1A;
}

body.contact-ink-active .contact-hero-sub {
    color: rgba(61, 61, 61, 0.6);
}

/* --------------------------------------------------------------------------
   Contact Section — Dark-on-cream
   -------------------------------------------------------------------------- */
body.contact-ink-active .section.contact-section {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

body.contact-ink-active .contact-section::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

/* Left column text */
body.contact-ink-active .contact-page-info .section-title {
    color: #1A1A1A !important;
}

body.contact-ink-active .contact-page-description {
    color: #3D3D3D;
}

body.contact-ink-active .contact-page-item {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.contact-ink-active .contact-page-item-label {
    color: #6B6B6B;
    opacity: 1;
}

body.contact-ink-active .contact-page-item-value {
    color: #1A1A1A;
}

/* --------------------------------------------------------------------------
   Form — Frosted-white glass on cream
   -------------------------------------------------------------------------- */
body.contact-ink-active .contact-page-form {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.contact-ink-active .contact-page-form .form-label {
    color: #3D3D3D;
}

body.contact-ink-active .contact-page-form .form-input {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #1A1A1A;
}

body.contact-ink-active .contact-page-form .form-input:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.06);
}

body.contact-ink-active .contact-page-form .form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.15);
}

body.contact-ink-active .contact-page-form .form-input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

body.contact-ink-active .contact-page-form select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%233D3D3D' d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
}

body.contact-ink-active .contact-page-form select.form-input option {
    background: #F8F6EE;
    color: #1A1A1A;
}

/* Button — green works on cream, no override needed */

/* --------------------------------------------------------------------------
   Footer — Stays dark (grounding anchor)
   -------------------------------------------------------------------------- */
body.contact-ink-active .footer {
    background: #0A0A0A !important;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Modal — Keep dark theme for auth modals
   -------------------------------------------------------------------------- */
body.contact-ink-active .intro-modal-content {
    background: var(--primary, #2C3E2D);
}

/* --------------------------------------------------------------------------
   prefers-reduced-motion Fallback
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .contact-ink-canvas {
        display: none;
    }
    /* body.contact-ink-active already sets background: #F8F6EE */
}
