/* Contact — premium layout (body.page-contact) */

.page-contact .main-content {
    overflow-x: clip;
}

/* —— Hero —— */
.pa-contact-hero {
    position: relative;
    padding: clamp(4.25rem, 12vw, 6.5rem) 0 clamp(2.75rem, 6vw, 4rem);
    color: #fff;
    isolation: isolate;
    text-align: center;
}

.pa-contact-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        125deg,
        #0a1628 0%,
        #0f3a42 30%,
        #124a55 55%,
        #0d2830 100%
    );
    background-size: 200% 200%;
    animation: pa-contact-grad 18s ease-in-out infinite alternate;
}

@keyframes pa-contact-grad {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pa-contact-hero__bg {
        animation: none;
        background-size: 100% 100%;
    }
}

.pa-contact-hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 42% at 50% -5%, rgba(31, 162, 193, 0.38), transparent 58%),
        radial-gradient(ellipse 38% 48% at 88% 72%, rgba(245, 158, 11, 0.1), transparent 52%);
}

.pa-contact-hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 12, 18, 0.15) 0%, rgba(6, 12, 18, 0.72) 100%);
    z-index: 1;
}

.pa-contact-hero__spot {
    position: absolute;
    width: min(100vw, 900px);
    height: min(70vw, 640px);
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(94, 234, 212, 0.12) 38%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 2;
    animation: pa-contact-spot-pulse 5s ease-in-out infinite;
}

@keyframes pa-contact-spot-pulse {
    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        filter: brightness(1.22);
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pa-contact-hero__spot {
        animation: none;
        filter: none;
        transform: translate(-50%, -50%);
    }
}

.pa-contact-hero .container {
    position: relative;
    z-index: 3;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.pa-contact-hero__title {
    font-family: var(--font-display, "Poppins", system-ui, sans-serif);
    font-size: clamp(2.25rem, 5.5vw, 3.65rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0 0 1rem;
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.pa-contact-hero__accent-wrap {
    position: relative;
    display: inline-block;
    margin-left: 0.12em;
}

.pa-contact-hero__accent-text {
    background: linear-gradient(105deg, #5eead4 0%, #67e8f9 45%, #a5f3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.pa-contact-hero__accent-line {
    position: absolute;
    left: 0;
    bottom: 0.06em;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2dd4bf, #67e8f9);
    opacity: 0.72;
    filter: blur(3px);
    transform: scaleX(1.02);
    pointer-events: none;
}

.pa-contact-hero__lede {
    margin: 0;
    font-size: clamp(1.05rem, 2.1vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.pa-contact-hero.is-visible .pa-contact-hero__title,
.pa-contact-hero.is-visible .pa-contact-hero__lede {
    opacity: 1;
    transform: none;
}

/* —— Main grid —— */
.pa-contact-main {
    padding-block: clamp(3.5rem, 8vw, 5rem);
    background: linear-gradient(180deg, #f7fcfd 0%, #ffffff 40%, #f2f9fb 100%);
}

.pa-contact-grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.5rem);
    align-items: start;
}

@media (min-width: 960px) {
    .pa-contact-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    }
}

.pa-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* —— Info cards (glass + lift) —— */
.pa-contact-card {
    display: block;
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-lg, 14px);
    border: 1px solid rgba(44, 62, 80, 0.1);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(15, 50, 60, 0.06);
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.pa-contact-card--static {
    cursor: default;
}

a.pa-contact-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 40px rgba(15, 60, 70, 0.12),
        0 0 0 1px rgba(15, 124, 138, 0.12);
    border-color: rgba(15, 124, 138, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.pa-contact-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.pa-contact-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 124, 138, 0.1);
    color: var(--footer-blue, #1a4d6b);
}

.pa-contact-card__label {
    margin: 0 0 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted, #5f7d95);
}

.pa-contact-card__value {
    margin: 0;
    font-family: var(--font-display, "Poppins", system-ui, sans-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading, #1a2b36);
    line-height: 1.35;
}

a.pa-contact-card .pa-contact-card__value {
    color: var(--footer-blue, #1a4d6b);
}

.pa-contact-card__hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.pa-contact-card--social .pa-contact-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pa-contact-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-md, 10px);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(15, 124, 138, 0.25);
    background: rgba(15, 124, 138, 0.06);
    color: var(--footer-blue, #1a4d6b);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.pa-contact-card__btn--li {
    background: rgba(10, 102, 194, 0.1);
    border-color: rgba(10, 102, 194, 0.35);
    color: #0a66c2;
}

.pa-contact-card__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 60, 70, 0.1);
    background: rgba(15, 124, 138, 0.1);
}

.pa-contact-card__btn--li:hover {
    background: rgba(10, 102, 194, 0.16);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.15);
}

.pa-contact-card__btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pa-contact-card__btn--ghost {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(44, 62, 80, 0.12);
    color: var(--text-heading);
}

/* —— Form panel —— */
.pa-contact-form-panel {
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(44, 62, 80, 0.1);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 16px 48px rgba(15, 50, 60, 0.08);
}

.pa-contact-form-panel__title {
    font-family: var(--font-display, "Poppins", system-ui, sans-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Glass + depth shell (form only) */
.pa-contact-form__glass {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: clamp(1.5rem, 3.5vw, 2rem);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(15, 124, 138, 0.14);
    box-shadow:
        0 25px 50px -12px rgba(15, 50, 60, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.pa-contact-form__glass::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(
        380px circle at var(--pa-glow-x, 50%) var(--pa-glow-y, 40%),
        rgba(20, 184, 166, 0.11),
        transparent 52%
    );
}

@media (hover: hover) and (pointer: fine) {
    .pa-contact-form__glass:hover::before {
        opacity: 1;
    }
}

.pa-contact-form__row {
    display: grid;
    gap: 1.15rem;
    margin-bottom: 0.15rem;
}

@media (min-width: 640px) {
    .pa-contact-form__row {
        grid-template-columns: 1fr 1fr;
        gap: 1.35rem;
    }
}

/* Floating underline fields */
.pa-contact-field {
    position: relative;
    margin-bottom: 1.35rem;
}

.pa-contact-field--textarea {
    margin-bottom: 1.5rem;
}

.pa-contact-field input,
.pa-contact-field textarea {
    width: 100%;
    display: block;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-heading, #1a2b36);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(44, 62, 80, 0.22);
    border-radius: 0;
    padding: 1.35rem 0 0.65rem;
    outline: none;
    caret-color: #14b8a6;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pa-contact-field textarea {
    min-height: 9.5rem;
    resize: vertical;
    line-height: 1.55;
    padding-top: 1.5rem;
}

.pa-contact-field input::placeholder,
.pa-contact-field textarea::placeholder {
    color: transparent;
}

.pa-contact-field label {
    position: absolute;
    left: 0;
    top: 1.05rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted, #5f7d95);
    letter-spacing: 0.02em;
    pointer-events: none;
    transform-origin: left top;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.25s ease,
        font-size 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.pa-contact-field--textarea label {
    top: 1.2rem;
}

.pa-contact-field:focus-within label,
.pa-contact-field input:not(:placeholder-shown) + label,
.pa-contact-field textarea:not(:placeholder-shown) + label {
    transform: translateY(-0.55rem) scale(0.82);
    color: rgba(15, 124, 138, 0.95);
    font-weight: 600;
}

.pa-contact-field input:focus,
.pa-contact-field textarea:focus {
    border-bottom-color: #2dd4bf;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.2);
    transform: scale(1.01);
    transform-origin: center bottom;
}

@media (prefers-reduced-motion: reduce) {
    .pa-contact-field input:focus,
    .pa-contact-field textarea:focus {
        transform: none;
    }
}

.pa-contact-field input:focus-visible,
.pa-contact-field textarea:focus-visible {
    box-shadow:
        0 4px 20px rgba(20, 184, 166, 0.2),
        0 0 0 2px rgba(20, 184, 166, 0.25);
}

@keyframes pa-contact-shake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.pa-contact-field.is-shake {
    animation: pa-contact-shake 0.38s ease;
}

@media (prefers-reduced-motion: reduce) {
    .pa-contact-field.is-shake {
        animation: none;
    }
}

/* Submit */
.pa-contact-submit {
    position: relative;
    overflow: hidden;
    margin-top: 0.35rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-family: var(--font-display, "Poppins", system-ui, sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(90deg, #14b8a6 0%, #06b6d4 50%, #22d3ee 100%);
    background-size: 120% 100%;
    box-shadow: 0 10px 28px rgba(20, 184, 166, 0.38);
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        background-position 0.45s ease,
        opacity 0.25s ease;
}

.pa-contact-submit .pa-cta-free {
    color: inherit;
    text-decoration-color: rgba(255, 255, 255, 0.55);
}

.pa-contact-submit__inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    transition: opacity 0.25s ease;
}

.pa-contact-submit__arrow {
    display: inline-block;
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
    .pa-contact-submit:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 34px rgba(20, 184, 166, 0.45);
        background-position: 100% 50%;
    }

    .pa-contact-submit:hover .pa-contact-submit__arrow {
        transform: translateX(5px);
    }
}

.pa-contact-submit:active {
    transform: scale(0.98);
}

.pa-contact-submit:active .pa-contact-submit__arrow {
    transform: translateX(2px);
}

.pa-contact-submit:disabled {
    cursor: wait;
    opacity: 0.88;
    transform: none;
}

.pa-contact-submit.is-loading .pa-contact-submit__inner {
    opacity: 0;
}

.pa-contact-submit.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.35rem;
    height: 1.35rem;
    margin: -0.675rem 0 0 -0.675rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pa-contact-spin 0.65s linear infinite;
}

@keyframes pa-contact-spin {
    to {
        transform: rotate(360deg);
    }
}

.pa-contact-submit__ripple-burst {
    position: absolute;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: pa-contact-ripple 0.55s ease-out forwards;
    pointer-events: none;
    z-index: 2;
}

@keyframes pa-contact-ripple {
    to {
        transform: scale(18);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pa-contact-submit:hover,
    .pa-contact-submit:active {
        transform: none;
    }

    .pa-contact-submit:hover .pa-contact-submit__arrow {
        transform: none;
    }

    .pa-contact-submit.is-loading::after {
        animation: none;
        border: 2px solid rgba(255, 255, 255, 0.6);
    }
}

/* Toast */
.pa-contact-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 12000;
    max-width: min(92vw, 22rem);
    padding: 0.95rem 1.2rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    font-weight: 500;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 0.85rem;
    box-shadow:
        0 18px 44px rgba(15, 50, 60, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transform: translate3d(-50%, 120%, 0);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pa-contact-toast.is-open {
    visibility: visible;
    transform: translate3d(-50%, 0, 0);
    opacity: 1;
    pointer-events: auto;
}

.pa-contact-toast:not(.is-open) {
    visibility: hidden;
}

/* —— Trust strip —— */
.pa-contact-trust {
    margin-top: clamp(2rem, 5vw, 2.75rem);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg, 14px);
    border: 1px solid rgba(44, 62, 80, 0.08);
    background: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.pa-contact-trust__line {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--footer-blue, #1a4d6b);
}

.pa-contact-trust__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.pa-contact-trust__tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 124, 138, 0.08);
    color: var(--text-heading, #2c3e50);
    border: 1px solid rgba(15, 124, 138, 0.12);
}

/* —— Map —— */
.pa-contact-map {
    padding-block: clamp(3.5rem, 8vw, 5rem);
    background: #fff;
}

.pa-contact-map__head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}

.pa-contact-map__head h2 {
    font-family: var(--font-display, "Poppins", system-ui, sans-serif);
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.pa-contact-map__head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.pa-contact-map__frame {
    position: relative;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: 0 20px 50px rgba(15, 50, 60, 0.1);
    min-height: 320px;
    background: rgba(15, 124, 138, 0.06);
}

.pa-contact-map__frame iframe {
    display: block;
    width: 100%;
    height: min(420px, 55vh);
    border: 0;
}

/* —— LinkedIn highlight —— */
.pa-contact-li {
    padding-block: clamp(3.5rem, 8vw, 5rem);
    background: linear-gradient(180deg, #f0fafc 0%, #e8f4f6 100%);
}

.pa-contact-li__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.pa-contact-li__inner h2 {
    font-family: var(--font-display, "Poppins", system-ui, sans-serif);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pa-contact-li__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(10, 102, 194, 0.2);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(10, 60, 120, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .pa-contact-li__card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 48px rgba(10, 60, 120, 0.12);
    }
}

.pa-contact-li__logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #0a66c2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-contact-li__name {
    margin: 0;
    font-family: var(--font-display, "Poppins", system-ui, sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
}

.pa-contact-li__role {
    margin: -0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.pa-contact-li__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    background: #0a66c2;
    color: #fff;
    border: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 6px 22px rgba(10, 102, 194, 0.35);
}

.pa-contact-li__btn:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 28px rgba(10, 102, 194, 0.45);
    color: #fff;
}

/* Reveal */
.pa-contact-reveal {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pa-contact-reveal.is-visible {
    opacity: 1;
    transform: none;
}
