/* ============================================================
   CONTACT PAGE - Code Xenix
   Premium design system
   ============================================================ */

/* ---------- Base ---------- */
.contact-page {
    color: var(--text-primary);
    overflow: hidden;
}

/* ---------- Shared ---------- */
.ct-kicker {
    color: var(--brand-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ct-heading {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 14px;
}

.ct-subheading {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1.7;
    max-width: 560px;
}

.ct-subheading--center {
    margin-left: auto;
    margin-right: auto;
}

.ct-section__head {
    margin-bottom: 56px;
}

.ct-section__head--center {
    text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.ct-hero {
    position: relative;
    padding: 50px 0 60px;
    background: linear-gradient(160deg, var(--bg-body) 0%, var(--bg-surface-alt) 50%, var(--bg-surface) 100%);
    overflow: hidden;
}

.ct-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.25), transparent);
}

.ct-hero__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ct-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.ct-shape--1 {
    width: 500px;
    height: 500px;
    background: var(--brand-primary);
    top: -200px;
    right: -120px;
    animation: ct-float 12s ease-in-out infinite;
}

.ct-shape--2 {
    width: 300px;
    height: 300px;
    background: var(--brand-primary);
    bottom: -100px;
    left: -80px;
    animation: ct-float 15s ease-in-out infinite reverse;
}

.ct-shape--3 {
    width: 200px;
    height: 200px;
    background: var(--brand-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ct-float 10s ease-in-out infinite 2s;
}

@keyframes ct-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Breadcrumb */
.ct-breadcrumb {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.ct-breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.ct-breadcrumb li {
    color: #6b7580;
    font-size: 1.1rem;
}

.ct-breadcrumb li[aria-hidden="true"] {
    color: #3d4450;
}

.ct-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.ct-breadcrumb a:hover {
    color: var(--brand-primary);
}

.ct-breadcrumb li[aria-current="page"] {
    color: var(--text-primary);
}

/* Hero Grid */
.ct-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ct-hero__title {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.ct-hero__subtitle {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}

.ct-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual */
.ct-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ct-hero__illustration {
    width: 100%;
    max-width: 420px;
    animation: ct-float 8s ease-in-out infinite;
}

.ct-hero__illustration svg {
    width: 100%;
    height: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.ct-btn--primary {
    background: linear-gradient(135deg, var(--brand-primary), #7ab510);
    color: var(--bg-body);
    box-shadow: 0 4px 20px rgba(148, 207, 20, 0.25);
}

.ct-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(148, 207, 20, 0.35);
    background: linear-gradient(135deg, #a3e017, #8ac712);
}

.ct-btn--secondary {
    background: rgba(var(--text-primary-rgb), 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ct-btn--secondary:hover {
    background: rgba(var(--text-primary-rgb), 0.1);
    border-color: rgba(148, 207, 20, 0.3);
    color: var(--brand-primary);
    transform: translateY(-2px);
}

.ct-btn--submit {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.15rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.ct-contact {
    padding: 100px 0;
    background: var(--bg-body);
    position: relative;
}

.ct-contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.15), transparent);
}

.ct-contact__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

/* Form Wrapper */
.ct-contact__form-wrapper {
    background: linear-gradient(160deg, rgba(var(--text-primary-rgb), 0.04), rgba(var(--text-primary-rgb), 0.01));
    border: 1px solid rgba(var(--text-primary-rgb), 0.07);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ct-contact__form-head {
    margin-bottom: 32px;
}

/* Form */
.ct-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ct-form__field {
    display: flex;
    flex-direction: column;
}

.ct-form__field--full {
    margin-bottom: 20px;
}

.ct-form__label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form input[type="tel"],
.ct-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(var(--text-primary-rgb), 0.04);
    border: 1px solid rgba(var(--text-primary-rgb), 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
}

.ct-form input[type="text"]:focus,
.ct-form input[type="email"]:focus,
.ct-form input[type="tel"]:focus,
.ct-form textarea:focus {
    border-color: rgba(148, 207, 20, 0.5);
    background: rgba(148, 207, 20, 0.04);
    box-shadow: 0 0 0 3px rgba(148, 207, 20, 0.1);
}

.ct-form input::placeholder,
.ct-form textarea::placeholder {
    color: #555d68;
}

.ct-form textarea {
    resize: vertical;
    min-height: 140px;
}

.ct-form__error {
    color: #e74c3c;
    font-size: 1rem;
    margin-top: 6px;
}

.ct-form__submit-row {
    margin-bottom: 16px;
}

.ct-form__disclaimer {
    color: #555d68;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* Form Success */
.ct-form__success {
    text-align: center;
    padding: 60px 40px;
}

.ct-form__success svg {
    margin-bottom: 20px;
}

.ct-form__success h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.ct-form__success p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Contact Info Cards */
.ct-contact__cards {
    display: flex;
    flex-direction: column;
}

.ct-info-card {
    padding: 28px;
    background: linear-gradient(160deg, rgba(var(--text-primary-rgb), 0.04), rgba(var(--text-primary-rgb), 0.01));
    border: 1px solid rgba(var(--text-primary-rgb), 0.07);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ct-info-card__row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ct-info-card__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ct-info-card__row:first-child {
    padding-top: 0;
}

.ct-info-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 207, 20, 0.1);
    border: 1px solid rgba(148, 207, 20, 0.2);
    border-radius: 10px;
    color: var(--brand-primary);
    font-size: 1rem;
}

.ct-info-card__content {
    flex: 1;
    min-width: 0;
}

.ct-info-card__title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.ct-info-card__value {
    color: var(--brand-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.ct-info-card__value a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ct-info-card__value a:hover {
    opacity: 0.8;
}

.ct-info-card__desc {
    color: #6b7580;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   OUR OFFICES
   ============================================================ */
.ct-offices {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface-alt) 100%);
    position: relative;
}

.ct-offices::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.15), transparent);
}

.ct-offices__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.ct-office-card {
    background: linear-gradient(160deg, rgba(var(--text-primary-rgb), 0.04), rgba(var(--text-primary-rgb), 0.01));
    border: 1px solid rgba(var(--text-primary-rgb), 0.07);
    border-radius: 20px;
    padding: 40px 48px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ct-office-card--featured {
    border-color: rgba(148, 207, 20, 0.2);
    background: linear-gradient(160deg, rgba(148, 207, 20, 0.06), rgba(148, 207, 20, 0.02));
}

.ct-office-card:hover {
    transform: translateY(-4px);
    border-color: rgba(148, 207, 20, 0.3);
    box-shadow: 0 12px 40px rgba(var(--shadow-color-rgb), 0.3);
}

.ct-office-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(148, 207, 20, 0.15);
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(148, 207, 20, 0.25);
}

.ct-office-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 207, 20, 0.1);
    border: 1px solid rgba(148, 207, 20, 0.2);
    border-radius: 14px;
    color: var(--brand-primary);
    margin: 0 auto 20px;
}

.ct-office-card__city {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ct-office-card__address {
    color: var(--brand-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
}

.ct-office-card__role {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* World Map */
.ct-map {
    max-width: 900px;
    margin: 0 auto;
}

.ct-map__container {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(var(--text-primary-rgb), 0.01));
    border: 1px solid rgba(var(--text-primary-rgb), 0.06);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 20px;
}

.ct-map__container svg {
    width: 100%;
    height: auto;
}

.ct-map__caption {
    text-align: center;
    color: #6b7580;
    font-size: 1.1rem;
    font-style: italic;
}

/* ============================================================
   ENGAGEMENT PROCESS
   ============================================================ */
.ct-process {
    padding: 100px 0;
    background: var(--bg-body);
    position: relative;
}

.ct-process::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.15), transparent);
}

/* Vertical Timeline */
.ct-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.ct-timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 27px;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-primary), rgba(148, 207, 20, 0.15));
}

.ct-timeline__item {
    position: relative;
    padding-left: 76px;
    padding-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.ct-timeline__item.ct-in-view {
    opacity: 1;
    transform: translateY(0);
}

.ct-timeline__item:nth-child(1) {
    transition-delay: 0.1s;
}

.ct-timeline__item:nth-child(2) {
    transition-delay: 0.25s;
}

.ct-timeline__item:nth-child(3) {
    transition-delay: 0.4s;
}

.ct-timeline__item:nth-child(4) {
    transition-delay: 0.55s;
}

.ct-timeline__item:last-child {
    padding-bottom: 0;
}

.ct-timeline__marker {
    position: absolute;
    left: 18px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 3px solid var(--brand-primary);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ct-timeline__item:hover .ct-timeline__marker {
    transform: scale(1.2);
    box-shadow: 0 0 16px rgba(148, 207, 20, 0.35);
}

.ct-timeline__card {
    background: var(--bg-surface);
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    border-radius: 14px;
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: border-color 0.3s ease;
}

.ct-timeline__card::before {
    background: var(--brand-primary);
    content: '';
    inset: 0;
    position: absolute;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
    z-index: -1;
    border-radius: 14px;
}

.ct-timeline__item:hover .ct-timeline__card::before {
    transform: scale(1);
}

.ct-timeline__item:hover .ct-timeline__card {
    border-color: var(--brand-primary);
}

.ct-timeline__card:hover .ct-timeline__step {
    background: rgba(var(--shadow-color-rgb), 0.15);
    color: var(--bg-surface-hover);
}

.ct-timeline__card:hover h3 {
    color: var(--bg-surface-hover);
}

.ct-timeline__card:hover p {
    color: #1a2025;
}

.ct-timeline__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ct-timeline__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: rgba(148, 207, 20, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.ct-timeline__card h3 {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px;
    transition: color 0.3s ease;
}

.ct-timeline__card p {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.ct-cta {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--bg-body) 0%, var(--bg-surface-alt) 50%, var(--bg-body) 100%);
    position: relative;
    overflow: hidden;
}

.ct-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.25), transparent);
}

.ct-cta__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ct-cta-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.ct-cta-shape--1 {
    width: 400px;
    height: 400px;
    background: var(--brand-primary);
    top: -150px;
    right: -100px;
    animation: ct-float 12s ease-in-out infinite;
}

.ct-cta-shape--2 {
    width: 250px;
    height: 250px;
    background: var(--brand-primary);
    bottom: -80px;
    left: -60px;
    animation: ct-float 15s ease-in-out infinite reverse;
}

.ct-cta-shape--3 {
    width: 150px;
    height: 150px;
    background: var(--brand-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ct-float 10s ease-in-out infinite 2s;
}

.ct-cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.ct-cta__title {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.ct-cta__desc {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ct-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.ct-contact__form-wrapper,
.ct-info-card,
.ct-office-card,
.ct-map,
.ct-cta__content {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ct-contact__form-wrapper.ct-in-view,
.ct-info-card.ct-in-view,
.ct-office-card.ct-in-view,
.ct-map.ct-in-view,
.ct-cta__content.ct-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE - Tablet
   ============================================================ */
@media (max-width: 1024px) {
    .ct-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ct-hero__illustration {
        max-width: 320px;
        margin: 0 auto;
    }

    .ct-contact__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE - Mobile
   ============================================================ */
@media (max-width: 768px) {
    .ct-hero {
        padding: 30px 0 40px;
    }

    .ct-hero__title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .ct-hero__subtitle {
        font-size: 1.3rem;
    }

    .ct-hero__actions {
        flex-direction: column;
    }

    .ct-hero__actions .ct-btn {
        width: 100%;
        justify-content: center;
    }

    .ct-contact,
    .ct-offices,
    .ct-process,
    .ct-cta {
        padding: 60px 0;
    }

    .ct-contact__form-wrapper {
        padding: 28px 20px;
    }

    .ct-form__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ct-contact__cards {
        grid-template-columns: 1fr;
    }

    .ct-info-card {
        padding: 20px;
    }

    .ct-office-card {
        padding: 28px 24px;
    }

    .ct-offices__grid {
        grid-template-columns: 1fr;
    }

    .ct-timeline__card {
        padding: 22px;
    }

    .ct-map__container {
        padding: 20px;
    }

    .ct-cta__actions {
        flex-direction: column;
    }

    .ct-cta__actions .ct-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ct-hero__title {
        font-size: 1.6rem;
    }

    .ct-heading {
        font-size: 1.3rem;
    }

    .ct-kicker {
        font-size: 1rem;
    }

    .ct-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}