/* Contact Page — Editorial Typography Design */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Hero ────────────────────────────────────── */
.contact-hero {
    background: #0f172a;
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(37, 99, 235, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(118, 75, 162, 0.1), transparent);
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), transparent);
}

.contact-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.contact-hero-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 1.5rem;
}

.contact-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact-hero h1 em {
    font-style: italic;
    color: #60a5fa;
}

.contact-hero-sub {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 550px;
    line-height: 1.7;
    margin: 0 auto;
}

/* ── Hero Animations ─────────────────────────── */
@keyframes contactFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-hero .container > * {
    animation: contactFadeUp 0.8s ease-out both;
}

.contact-hero .container > *:nth-child(1) { animation-delay: 0s; }
.contact-hero .container > *:nth-child(2) { animation-delay: 0.1s; }
.contact-hero .container > *:nth-child(3) { animation-delay: 0.2s; }

/* ── Contact Section ─────────────────────────── */
.contact-section {
    padding: 80px 0 100px;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ── Left Column: Contact Methods ────────────── */
.contact-methods-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.contact-methods-intro {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Contact method cards */
.contact-method-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-left: 3px solid #2563eb;
    margin-bottom: 1.25rem;
    border-radius: 2px;
    transition: box-shadow 0.3s ease;
}

.contact-method-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Icon markers — simple CSS shapes */
.contact-method-icon {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.icon-marker {
    display: block;
    width: 10px;
    height: 10px;
    background: #2563eb;
    border-radius: 2px;
    transform: rotate(45deg);
}

.icon-marker--email {
    background: #60a5fa;
    border-radius: 50%;
    transform: none;
}

.icon-marker--linkedin {
    background: transparent;
    border: 2px solid #2563eb;
    border-radius: 0;
    transform: rotate(45deg);
    width: 8px;
    height: 8px;
}

.contact-method-body h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #0f172a;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.contact-method-body p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.contact-method-body p:last-child {
    margin-bottom: 0;
}

.contact-method-body a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.contact-method-body a:hover {
    border-bottom-color: #2563eb;
}

/* Discovery call button (inline in card) */
.contact-cta-btn {
    display: inline-block;
    background: #0f172a;
    color: white;
    padding: 0.55rem 1.5rem;
    border: none;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.contact-cta-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

/* Response times */
.contact-response-times {
    background: #0f172a;
    padding: 2rem;
    border-radius: 2px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-response-times::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2563eb;
}

.response-times-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 1.25rem;
}

.response-times-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.response-times-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.response-times-list li:last-child {
    border-bottom: none;
}

.response-times-list li span:first-child {
    color: #94a3b8;
}

.response-times-list li span:last-child {
    color: #e2e8f0;
    font-weight: 500;
}

/* ── Right Column: Contact Form ──────────────── */
.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-form-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.contact-form-intro {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form layout */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.contact-form label .required {
    color: #2563eb;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid #cbd5e1;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0f172a;
    transition: border-color 0.2s ease;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.contact-form select {
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-bottom-color: #2563eb;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Submit button */
.contact-form .submit-btn {
    display: block;
    width: 100%;
    background: #0f172a;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.contact-form .submit-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.contact-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form note */
.form-note {
    margin-top: 1rem;
}

.form-note p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Response message */
.response-message {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 2px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.response-message.success {
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid #16a34a;
}

.response-message.error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid #dc2626;
}

/* ── Bottom CTA ──────────────────────────────── */
.contact-bottom-cta {
    background: #0f172a;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.contact-bottom-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}

.contact-bottom-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-bottom-cta p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.contact-cta-btn-dark {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-cta-btn-dark:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 60px;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-section {
        padding: 60px 0 80px;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-bottom-cta {
        padding: 60px 0;
    }

    .contact-bottom-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .contact-methods-heading,
    .contact-form-heading {
        font-size: 1.6rem;
    }

    .contact-method-card {
        padding: 1.25rem;
    }
}

/* ── Free Audit Callout ──────────────────────── */
.contact-free-audit-callout {
    background: #f0f9ff;
    border-top: 4px solid #0ea5e9;
    border-bottom: 4px solid #0ea5e9;
    padding: 3rem 0;
    margin: 2rem 0;
}

.contact-free-audit-callout .callout-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-free-audit-callout h2 {
    margin-bottom: 0.5rem;
    color: #0c4a6e;
}

.contact-free-audit-callout p {
    margin-bottom: 1.5rem;
    color: #075985;
}

.contact-free-audit-callout .callout-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: #0ea5e9;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.contact-free-audit-callout .callout-cta:hover {
    background: #0284c7;
}
