/* ================================================================
   CONTACT — "GET IN TOUCH"
   Brutalist dark theme, red-coral accents
   ================================================================ */

/* ---- Remove the default section + section::before divider ---- */
#contact::before { display: none !important; }
#contact + footer::before { display: none !important; }

/* ---- Section wrapper ---- */
#contact {
    position: relative;
    background: var(--bg-color);
    padding: 120px 0 0;
    overflow: hidden;
}

/* ---- Grid-paper background ---- */
#contact::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(232,71,63,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,71,63,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* ---- Inner layout ---- */
.contact-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 100px;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 0;
}

/* ---- Red-coral vertical divider ---- */
.contact-divider {
    position: absolute;
    left: calc(40% + 40px);
    top: 0;
    bottom: 100px;
    width: 1px;
    background: linear-gradient(to bottom, #e8473f, rgba(232,71,63,0.15));
    z-index: 2;
    pointer-events: none;
}

/* ================================================================
   LEFT COLUMN
   ================================================================ */
.contact-left {
    padding-right: 56px;
    display: flex;
    flex-direction: column;
    gap: 0;

    /* Reveal from left */
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.contact-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Section label */
.contact-label {
    font-family: var(--font-heading);
    font-size: 11px;
    color: #e8473f;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: block;
}

/* Main heading */
.contact-heading {
    margin: 0 0 1.5rem;
    line-height: 0.9;
}
.contact-heading .ch-get {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(52px, 7vw, 96px);
    color: #ffffff;
    letter-spacing: 2px;
}
.contact-heading .ch-touch {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(52px, 7vw, 96px);
    color: #e8473f;
    letter-spacing: 2px;
}

/* Subtext */
.contact-sub {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Short rule */
.contact-rule {
    width: 40%;
    height: 1px;
    background: #e8473f;
    margin-bottom: 2rem;
    opacity: 0.7;
}

/* ---- Info blocks (location / email) ---- */
.contact-info-block {
    margin-bottom: 1.5rem;
}
.contact-info-block .cib-label {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 0.3rem;
}
.contact-info-block .cib-value {
    font-family: var(--font-body);
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    display: block;
}
.contact-info-block .cib-value.cib-email {
    color: #e8473f;
    position: relative;
    display: inline-block;
    transition: color 0.25s ease;
}
.contact-info-block .cib-value.cib-email::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e8473f;
    transition: width 0.3s var(--ease-smooth);
}
.contact-info-block .cib-value.cib-email:hover::after {
    width: 100%;
}

/* ---- Social links (vertical list) ---- */
.contact-socials {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}
.contact-socials-label {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 0.75rem;
}

.cs-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
    position: relative;

    /* stagger reveal */
    opacity: 0;
    transform: translateX(-16px);
}
.cs-link.revealed {
    opacity: 1;
    transform: translateX(0);
}
.cs-link:hover {
    color: #e8473f;
    transform: translateX(8px) !important;
}
.cs-link .cs-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}
.cs-link:hover .cs-icon { opacity: 1; }
.cs-link .cs-name {
    flex: 1;
    letter-spacing: 0.5px;
}
.cs-link .cs-arrow {
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-4px);
}
.cs-link:hover .cs-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Availability badge ---- */
.contact-avail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid #22c55e;
    padding: 7px 16px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #22c55e;
    text-transform: uppercase;
    margin-top: auto;
    background: transparent;
    width: fit-content;
}
.contact-avail .ca-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: pulse-avail 1.6s ease-in-out infinite;
}
@keyframes pulse-avail {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
    50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0);  }
}

/* ================================================================
   RIGHT COLUMN — FORM CARD
   ================================================================ */
.contact-right {
    padding-left: 56px;

    /* Reveal from right */
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s var(--ease-out) 0.15s, transform 0.7s var(--ease-out) 0.15s;
}
.contact-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Form card */
.contact-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-top: 2px solid #e8473f;
    padding: 2.5rem 2.25rem;
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

/* Card title */
.contact-card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    color: #e8473f;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: block;
}

/* ---- Field styles ---- */
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.cf-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.75rem;
}
.cf-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}
.cf-input,
.cf-textarea {
    background-color: transparent;
    background-image: linear-gradient(#e8473f, #e8473f);
    background-size: 0% 2px;
    background-position: bottom left;
    background-repeat: no-repeat;
    border: none;
    border-bottom: 1px solid #333;
    outline: none;
    padding: 10px 0;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    border-radius: 0;
    width: 100%;
    transition: background-size 0.5s ease;
    caret-color: #e8473f;
}
.cf-input:focus-visible,
.cf-textarea:focus-visible {
    outline: none !important;
}
.cf-input::placeholder,
.cf-textarea::placeholder {
    color: var(--text-tertiary);
    font-style: italic;
}
.cf-input:focus,
.cf-textarea:focus {
    background-size: 100% 2px;
}
.cf-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* ---- Submit button ---- */
.cf-submit {
    display: block;
    width: 100%;
    height: 56px;
    background: #e8473f;
    border: 2px solid #e8473f;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.15s ease;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.cf-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.cf-submit:hover::after { transform: translateX(100%); }
.cf-submit:hover {
    background: transparent;
    color: #e8473f;
}
.cf-submit:active {
    transform: scale(0.98);
}
.cf-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ---- Error message ---- */
.cf-error {
    display: none;
    color: #e8473f;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-left: 2px solid #e8473f;
    background: rgba(232,71,63,0.06);
}
.cf-error.visible { display: block; }

/* ---- Success state ---- */
.contact-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    animation: fadeInSuccess 0.6s var(--ease-out) forwards;
}
.contact-success.visible { display: flex; }

@keyframes fadeInSuccess {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cs-check {
    width: 48px;
    height: 48px;
    border: 2px solid #e8473f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8473f;
    font-size: 22px;
    margin-bottom: 1.5rem;
}

.cs-headline {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    color: #ffffff;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 1rem;
    animation: glitch-success 0.5s steps(2) 0.3s both;
}

@keyframes glitch-success {
    0%   { text-shadow: 3px 0 #e8473f, -3px 0 #22c55e; }
    25%  { text-shadow: -3px 0 #e8473f, 3px 0 #22c55e; }
    50%  { text-shadow: 2px 0 #e8473f, -2px 0 #22c55e; }
    75%  { text-shadow: -1px 0 #e8473f, 1px 0 #22c55e; }
    100% { text-shadow: none; }
}

.cs-sub {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

/* ================================================================
   FOOTER STRIP (inside #contact)
   ================================================================ */
.site-footer {
    position: relative;
    z-index: 1;
    background: #0a0a0e;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 2rem;
}

/* Left copyright */
.footer-copy {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Center marquee */
.footer-marquee-wrap {
    overflow: hidden;
    position: relative;
}
.footer-marquee-wrap::before,
.footer-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
.footer-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0e, transparent);
}
.footer-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0e, transparent);
}

.footer-marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
}
.footer-marquee:hover { animation-play-state: paused; }

.footer-marquee-track {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    padding-right: 0;
}

.footer-marquee span {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0 16px;
    opacity: 0.6;
}
.footer-marquee span.dot {
    color: #e8473f;
    opacity: 0.5;
    padding: 0;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Right social icons */
.footer-socials {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.footer-social-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 14px;
    transition: color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.footer-social-icon:hover {
    color: #e8473f;
    transform: translateY(-2px);
}
.footer-social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Bottom micro line */
.footer-micro {
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    padding: 10px 40px;
}
.footer-micro p {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ================================================================
   RESPONSIVE — mobile
   ================================================================ */
@media (max-width: 900px) {
    .contact-inner {
        grid-template-columns: 1fr;
        padding: 0 24px 80px;
        gap: 3rem;
    }
    .contact-divider { display: none; }
    .contact-left { padding-right: 0; }
    .contact-right { padding-left: 0; }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 20px 24px;
    }
    .footer-socials { justify-content: center; }
    .footer-copy { text-align: center; }
}

@media (max-width: 600px) {
    .cf-row { grid-template-columns: 1fr; }
    .contact-heading .ch-get,
    .contact-heading .ch-touch {
        font-size: clamp(44px, 14vw, 72px);
    }
    #contact { padding-top: 80px; }
}

/* ================================================================
   SOCIAL ICON ROW — Horizontal icon buttons
   ================================================================ */
.contact-socials {
    margin-top: 1.6rem;
}

.contact-socials-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-tertiary);
    margin-bottom: 0.9rem;
}

/* Horizontal flex row */
.cs-icon-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Individual icon button */
.cs-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #222222;
    background: transparent;
    color: #888888;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
    flex-shrink: 0;
}

.cs-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: fill 0.25s ease;
    display: block;
}

/* Hover: lift + accent glow */
.cs-icon-btn:hover {
    color: #e8473f;
    border-color: #e8473f;
    background: rgba(232, 71, 63, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(232, 71, 63, 0.22);
}

/* Tooltip via data-tooltip attribute */
.cs-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--surface-elevated);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.cs-icon-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
