/* Contact Page Specific Styles - Reference Revamp Edition */

:root {
    --contact-blue-grad: linear-gradient(135deg, #c49a3c 0%, #1c2b4a 50%, #0f172a 100%);
    --contact-dark-navy: #0a0f1d;
    --contact-light-text: #faf9f6;
    --contact-skill-bg: #0f172a;
    --contact-skill-card: #141b30;
    --contact-accent-gold: #c49a3c;
}

/* Base Transitions */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section - Gradient & Professional Visual */
.contact-hero-revamp {
    position: relative;
    padding: 14rem 0 10rem;
    background: var(--contact-blue-grad);
    overflow: hidden;
    color: #fff;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-hero-revamp h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.contact-hero-revamp h1 span {
    position: relative;
    display: inline-block;
}

.contact-hero-revamp h1 span::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(196, 154, 60, 0.5);
    z-index: -1;
}

.contact-hero-revamp p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-portrait {
    width: 100%;
    max-width: 450px;
    height: 550px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 8px solid rgba(255, 255, 255, 0.05);
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Decorative Sparkles/Shapes */
.sparkle-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.sparkle-1 {
    top: 10%;
    right: 5%;
    width: 100px;
}

.sparkle-2 {
    bottom: 10%;
    left: 45%;
    scale: 1.5;
}

/* Contact Methods Section */
.contact-methods {
    padding: 6rem 0 5rem;
    background: #ffffff;
}

.contact-methods-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-methods-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.contact-methods-header h2 span {
    background: linear-gradient(135deg, var(--accent-blue), #c49a3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-methods-header p {
    color: #64748b;
    font-size: 1rem;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* New Vertical Contact Cards */
.contact-card-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.25rem 2rem 2rem;
    border-radius: 28px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.contact-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.06);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card-v2:hover::before { opacity: 1; }

.contact-card-v2:hover {
    transform: translateY(-8px);
}

.contact-card-v2.whatsapp {
    background: linear-gradient(145deg, #25D366 0%, #128C4E 100%);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.25);
}
.contact-card-v2.whatsapp:hover {
    box-shadow: 0 24px 56px rgba(37, 211, 102, 0.38);
}

.contact-card-v2.call {
    background: linear-gradient(145deg, #c49a3c 0%, #1c2b4a 100%);
    box-shadow: 0 16px 40px rgba(196, 154, 60, 0.25);
}
.contact-card-v2.call:hover {
    box-shadow: 0 24px 56px rgba(196, 154, 60, 0.38);
}

.contact-card-v2.email {
    background: linear-gradient(145deg, #1c2b4a 0%, #0d1525 100%);
    box-shadow: 0 16px 40px rgba(196, 154, 60, 0.25);
}
.contact-card-v2.email:hover {
    box-shadow: 0 24px 56px rgba(196, 154, 60, 0.38);
}

.ccv2-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    background: rgba(255,255,255,0.18);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.ccv2-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.18);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.ccv2-body {
    flex-grow: 1;
}

.ccv2-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.ccv2-sub {
    font-size: 0.9rem;
    opacity: 0.82;
    font-weight: 400;
    line-height: 1.5;
}

.ccv2-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    font-weight: 700;
    width: 100%;
    transition: gap 0.25s ease;
}

.contact-card-v2:hover .ccv2-action {
    gap: 0.85rem;
}

/* Dual contact person rows inside cards */
.ccv2-dual-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    width: 100%;
}

.ccv2-person-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    text-decoration: none;
    color: inherit;
    font-size: 0.88rem;
    transition: background 0.2s ease, transform 0.15s ease;
    border: 1px solid rgba(255,255,255,0.18);
}

.ccv2-person-row:hover {
    background: rgba(255,255,255,0.28);
    transform: translateX(3px);
}

.ccv2-person-name {
    font-weight: 700;
    font-size: 0.87rem;
}

.ccv2-person-num {
    font-size: 0.82rem;
    opacity: 0.9;
    font-weight: 500;
}

.method-card {
    background: #faf9f6;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e8e3d8;
    position: relative;
    overflow: hidden;
}

.method-card:hover {
    background: #ffffff;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: #c49a3c33;
}

.method-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #c49a3c;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.method-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--contact-dark-navy);
}

.method-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.method-link {
    font-weight: 700;
    color: #c49a3c;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Compact Discovery Section */
.contact-discovery-optimized {
    padding: 4rem 0 8rem;
    background: #ffffff;
}

.discovery-compact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    align-items: stretch;
}

.map-card-thumbnail {
    background: #fff;
    border-radius: 32px;
    border: 1px solid #e8e3d8;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
}

.map-card-thumbnail:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.map-card-thumbnail iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0.2) contrast(1.1);
}

.map-card-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.discovery-info-card {
    background: #fff;
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid #e8e3d8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.discovery-info-card:hover {
    border-color: #c49a3c33;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.discovery-info-card .icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c49a3c, #1c2b4a);
    color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(196, 154, 60, 0.2);
    margin-bottom: 0.5rem;
}

.discovery-info-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.discovery-info-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.mini-map-trigger {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #c49a3c;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    width: fit-content;
}

.mini-map-trigger:hover {
    gap: 1.25rem;
    color: #1c2b4a;
}

.mini-map-trigger svg {
    transition: transform 0.3s ease;
}

.mini-map-trigger:hover svg {
    transform: scale(1.1);
}

/* Slim FAQ Grid */
/* ── FAQ Section ── */
.slim-faq-section {
    padding: 5rem 0 7rem;
    background: #faf9f6;
    border-radius: 60px 60px 0 0;
}

.faq-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

.faq-section-header p {
    color: #64748b;
    font-size: 1rem;
}

.slim-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Accordion item */
.slim-faq-item {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e0d9cc;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.slim-faq-item.open {
    border-color: var(--accent-35);
    box-shadow: 0 8px 30px rgba(196,154,60,0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.75rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.faq-question-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(196, 154, 60, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.slim-faq-item.open .faq-icon {
    background: var(--accent-10);
}

.faq-icon svg { color: var(--accent-blue); }

.faq-question h4 {
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    transition: color 0.25s ease;
}

.slim-faq-item.open .faq-question h4 { color: var(--accent-dark); }

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(196, 154, 60, 0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.3s ease;
    padding: 0;
}

.faq-toggle svg {
    color: #64748b;
    transition: color 0.25s ease;
}

.slim-faq-item.open .faq-toggle {
    background: var(--accent-blue);
    transform: rotate(45deg);
}

.slim-faq-item.open .faq-toggle svg { color: #fff; }

/* Answer panel */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.slim-faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 1.75rem 1.5rem 4.25rem;
}

.faq-answer p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
}

/* Map Section Removed from here as it moved to discovery grid */

@media (max-width: 768px) {
    .container { padding: 0 clamp(1rem, 5vw, 1.5rem); }
}

@media (max-width: 1100px) {
    .hq-discovery-grid {
        grid-template-columns: 1fr;
    }

    .hq-details-panel {
        padding: 4rem 2rem;
    }

    .hq-map-panel {
        min-height: 400px;
    }

    .hq-details-panel h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1100px) {
    .office-map-grid {
        grid-template-columns: 1fr;
    }

    .office-info-card {
        padding: 3rem;
    }

    .office-map-frame {
        height: 450px;
    }
}



/* CTA - Global Footer Reveal Fix */
.contact-cta {
    padding: 8rem 0;
    background: #ffffff;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

/* Footer Fix */
footer {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1100px) {
    .skills-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .methods-grid {
        grid-template-columns: 1fr;
    }

    .contact-card-v2 {
        min-height: auto;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
        padding: 1.5rem 1.5rem;
    }

    .ccv2-badge {
        order: -1;
        margin-bottom: 0;
        margin-right: auto;
        width: 100%;
        margin-bottom: 1rem;
    }

    .ccv2-icon-wrap {
        width: 52px;
        height: 52px;
        margin-bottom: 0;
        margin-right: 1.25rem;
        flex-shrink: 0;
    }

    .ccv2-body {
        flex: 1;
    }

    .ccv2-action {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .form-container-revamp {
        grid-template-columns: 1fr;
    }

    .contact-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-portrait {
        margin: 0 auto;
        margin-top: 4rem;
    }

    .hero-tag {
        justify-content: center;
    }

    .contact-hero-revamp p {
        margin-left: auto;
        margin-right: auto;
    }

    .discovery-compact-grid,
    .slim-faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .slim-faq-section,
    .contact-discovery-optimized {
        padding: 4rem 0;
    }

    .map-overlay-card {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 1rem;
        max-width: 100%;
        box-shadow: none;
        background: #fff;
    }

    .map-container-premium {
        height: 350px;
        border-radius: 20px;
    }
}

/* FAQ Icon Rotation */
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.faq-question svg {
    transition: transform 0.3s ease;
}