/* ============================================================
   Contacts page — warm editorial (consistent with living home)
   Scoped under .contacts-body / .contacts-page
   ============================================================ */

.contacts-body {
    background: #171918;
}

/* Hide the WebGL stage and its overlays — this page is calm editorial */
.contacts-body #webgl-canvas-container,
.contacts-body .viewport-overlay,
.contacts-body .viewport-grid,
.contacts-body .cursor-scanner {
    display: none !important;
}

/* Paper grain, same mood as the homepage */
.contacts-body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
    animation: contactsGrain 1.1s steps(3) infinite;
}

@keyframes contactsGrain {
    0%   { background-position: 0 0; }
    33%  { background-position: -46px 28px; }
    66%  { background-position: 32px -40px; }
    100% { background-position: 0 0; }
}

.contacts-page {
    font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
    color: #252a26;
}

.contacts-container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 40px;
}

.contacts-kicker {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #99334b;
}

.contacts-kicker-light {
    color: #ec93a6;
}

/* ---------- Hero ---------- */

.contacts-hero {
    background: #f0ede5;
    padding: clamp(150px, 17vw, 200px) 0 clamp(52px, 6vw, 80px);
}

.contacts-hero h1 {
    margin: 26px 0 30px;
    font-size: clamp(44px, 6.4vw, 92px);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -0.05em;
    color: #252a26;
}

.contacts-hero h1 em {
    font-family: 'Cormorant', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: #99334b;
}

.contacts-lead {
    max-width: 640px;
    margin: 0;
    font-size: 17px;
    line-height: 1.72;
    color: #4d544e;
}

/* Hero layout: text left, photo card right */

.contacts-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.contacts-hero-photo {
    margin: 0;
    justify-self: center;
    padding: 14px 14px 16px;
    background: #fdf9f0;
    border: 1px solid #d8d5c9;
    border-radius: 18px 5px 5px 5px;
    box-shadow: 0 18px 44px rgba(37, 42, 38, 0.14);
    transform: rotate(1.6deg);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
    max-width: 380px;
}

.contacts-hero-photo:hover {
    transform: rotate(0) translateY(-4px);
    box-shadow: 0 26px 60px rgba(37, 42, 38, 0.18);
}

.contacts-hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px 3px 3px 3px;
    object-fit: cover;
}

.contacts-hero-photo figcaption {
    margin-top: 12px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #99334b;
    text-align: center;
}

/* ---------- Contact cards ---------- */

.contacts-cards-section {
    background: #f0ede5;
    padding-bottom: clamp(70px, 8vw, 110px);
}

.contacts-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.contacts-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px 22px;
    background: #f8f5ee;
    border: 1px solid #d8d5c9;
    border-radius: 16px 4px 4px 4px;
    color: #252a26;
    text-decoration: none;
    transform: rotate(-0.4deg);
    box-shadow: 0 8px 20px rgba(37, 42, 38, 0.06);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s, border-color 0.28s;
}

.contacts-card:nth-child(even) {
    transform: rotate(0.4deg);
}

a.contacts-card:hover {
    transform: rotate(0) translateY(-3px);
    border-color: #b52e49;
    box-shadow: 0 16px 34px rgba(37, 42, 38, 0.12);
}

a.contacts-card:focus-visible {
    outline: 2px solid #b52e49;
    outline-offset: 3px;
}

.contacts-card-label {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #99334b;
}

.contacts-card strong {
    font-size: clamp(19px, 1.55vw, 23px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.contacts-card small {
    font-size: 12.5px;
    line-height: 1.55;
    color: #657067;
}

.contacts-card-action {
    margin-top: auto;
    padding-top: 8px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b52e49;
    transition: letter-spacing 0.28s;
}

a.contacts-card:hover .contacts-card-action {
    letter-spacing: 0.2em;
}

/* ---------- Form / Pre-footer section is now globally styled in footer.css ---------- */

/* ---------- Marquee ---------- */

.contacts-marquee {
    background: #99334b;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 16px 0;
}

.contacts-marquee-track {
    display: flex;
    width: max-content;
    animation: contactsMarquee 32s linear infinite;
}

.contacts-marquee-track span {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f5dede;
    white-space: nowrap;
    padding-right: 12px;
}

@keyframes contactsMarquee {
    to { transform: translateX(-50%); }
}

/* ---------- Steps ---------- */

.contacts-steps-section {
    background: #f0ede5;
    padding: clamp(70px, 8vw, 110px) 0;
}

.contacts-steps-section h2,
.contacts-faq-section h2 {
    margin: 22px 0 44px;
    font-size: clamp(30px, 3.8vw, 52px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #252a26;
}

.contacts-steps-section h2 em,
.contacts-faq-section h2 em {
    font-family: 'Cormorant', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: #99334b;
}

.contacts-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.contacts-step {
    padding: 24px 22px 26px;
    border-top: 2px solid #99334b;
    background: transparent;
}

.contacts-step-num {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #99334b;
}

.contacts-step h3 {
    margin: 14px 0 10px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: #252a26;
}

.contacts-step p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: #4d544e;
}

/* ---------- Promise quote ---------- */

.contacts-promise {
    background: #f0ede5;
    padding: 0 0 clamp(70px, 8vw, 110px);
}

.contacts-promise-quote {
    margin: 0;
    padding: clamp(34px, 4.5vw, 56px) clamp(30px, 5vw, 72px);
    background: #fdf9f0;
    border: 1px solid #d8d5c9;
    border-left: 4px solid #b52e49;
    border-radius: 4px 20px 20px 4px;
    transform: rotate(-0.3deg);
}

.contacts-promise-quote p {
    margin: 0 0 18px;
    font-family: 'Cormorant', Georgia, serif;
    font-style: italic;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #252a26;
}

.contacts-promise-quote cite {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #99334b;
}

/* ---------- FAQ ---------- */

.contacts-faq-section {
    background: #f0ede5;
    padding: 0 0 clamp(80px, 9vw, 130px);
}

.contacts-faq {
    max-width: 860px;
}

.contacts-faq-item {
    border-bottom: 1px solid #d8d5c9;
}

.contacts-faq-item summary {
    position: relative;
    padding: 22px 48px 22px 0;
    font-size: 17.5px;
    font-weight: 600;
    color: #252a26;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.contacts-faq-item summary::-webkit-details-marker {
    display: none;
}

.contacts-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Cormorant', Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    color: #99334b;
    transition: transform 0.25s;
}

.contacts-faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.contacts-faq-item summary:hover {
    color: #99334b;
}

.contacts-faq-item p {
    margin: 0;
    padding: 0 40px 24px 0;
    font-size: 15px;
    line-height: 1.75;
    color: #4d544e;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .contacts-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contacts-hero-photo {
        justify-self: start;
        max-width: 320px;
    }
    .contacts-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacts-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px 18px;
    }
    .contacts-form-intro p {
        max-width: 620px;
    }
}

@media (max-width: 640px) {
    .contacts-container {
        padding: 0 22px;
    }
    .contacts-hero {
        padding-top: 130px;
    }
    .contacts-cards {
        grid-template-columns: 1fr;
    }
    .contacts-card,
    .contacts-card:nth-child(even) {
        transform: rotate(0);
    }
    .contacts-hero-photo {
        max-width: 100%;
        transform: rotate(0.8deg);
    }
    .contacts-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .contacts-cta-btn {
        justify-content: center;
    }
    .contacts-steps {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .contacts-promise-quote {
        transform: rotate(0);
    }
    .contacts-faq-item p {
        padding-right: 0;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .contacts-body::after,
    .contacts-marquee-track {
        animation: none;
    }
    .contacts-care::before {
        animation: none;
    }
    .contacts-card,
    .contacts-cta-btn {
        transition: none;
    }
}

