/* ==========================================================================
   Site-wide custom styles (loaded after the theme stylesheets)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Logo — white version on dark headers, black version on the light header
   -------------------------------------------------------------------------- */
/* the theme sets --logo-width on the universal selector, so override the width directly */
div#logo img {
    max-width: 170px;
    height: auto;
}
@media only screen and (max-width: 767px) {
    div#logo img {
        max-width: 140px;
    }
}
#logo .logo-dark {
    display: none;
}
header.header-light #logo .logo-light {
    display: none;
}
header.header-light #logo .logo-dark {
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.ct-page {
    --ct-ease: cubic-bezier(.19, 1, .22, 1);
    --ct-line: rgba(var(--bg-dark-1-rgb), .14);
}

/* quick contact cards */
.ct-quick__card {
    display: block;
    height: 100%;
    padding: 34px 30px;
    background: var(--bg-light);
    border: 1px solid var(--ct-line);
    color: var(--body-font-color);
    transition: transform .4s var(--ct-ease), border-color .4s ease, background .4s ease;
}
.ct-quick__card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    color: var(--body-font-color);
}
.ct-quick__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), .12);
    color: var(--primary-color);
    font-size: 22px;
    transition: background .4s ease, color .4s ease;
}
.ct-quick__card:hover .ct-quick__icon {
    background: var(--primary-color);
    color: #ffffff;
}
.ct-quick__label {
    display: block;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.ct-quick__value {
    display: block;
    margin: 6px 0 4px;
    font-family: var(--heading-font);
    font-size: 24px;
    line-height: 1.3;
    color: var(--heading-font-color);
    word-break: break-word;
}
.ct-quick__note {
    display: block;
    font-size: 14px;
    opacity: .75;
}

/* contact details list */
.ct-detail {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid var(--ct-line);
}
.ct-detail:last-of-type {
    border-bottom: 1px solid var(--ct-line);
}
.ct-detail__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-color-rgb), .35);
    color: var(--primary-color);
    font-size: 18px;
}

/* form */
.ct-form-card {
    padding: 40px;
    background: var(--bg-light);
    border: 1px solid var(--ct-line);
}
.ct-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--heading-font-color);
}
.ct-label span {
    color: var(--primary-color);
}
.ct-form-card .form-control {
    background: #ffffff;
    border: 1px solid var(--ct-line);
    border-radius: var(--rounded-1);
    padding: 12px 16px;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.ct-form-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), .12);
    outline: none;
}
.ct-form-card .form-control.is-invalid {
    border-color: #c0392b;
}
.ct-field-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #c0392b;
}
.ct-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.ct-form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
}
.ct-form__foot .btn-main {
    padding: 12px 34px;
    border: none;
    cursor: pointer;
}
.ct-form__foot .btn-main:disabled {
    opacity: .65;
    cursor: wait;
}
.ct-form__note {
    font-size: 14px;
    opacity: .75;
}
.ct-alert {
    margin-top: 22px;
    padding: 16px 20px;
    font-size: 15px;
    border-left: 3px solid;
}
.ct-alert.is-success {
    color: #1e6b3a;
    background: rgba(30, 107, 58, .08);
    border-color: #1e6b3a;
}
.ct-alert.is-error {
    color: #a5332a;
    background: rgba(165, 51, 42, .08);
    border-color: #a5332a;
}

/* what happens next */
.ct-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 46px 0 0;
}
.ct-steps::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(var(--primary-color-rgb), .35);
}
.ct-step {
    position: relative;
}
.ct-step::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}
.ct-step__num {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: .14em;
    color: var(--primary-color);
}
.ct-step__title {
    font-size: clamp(22px, 2vw, 28px);
    margin-bottom: 10px;
}

/* map */
.ct-map iframe {
    display: block;
    width: 100%;
    height: 460px;
    border: 0;
    filter: grayscale(1) sepia(.35) saturate(.8) contrast(.95);
    transition: filter .6s ease;
}
.ct-map:hover iframe {
    filter: none;
}
.ct-map__card {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(24px, calc(50% - var(--container-max-width) / 2));
    transform: translateY(-50%);
    width: min(340px, calc(100% - 48px));
    padding: 30px;
    background: var(--bg-dark-1);
    color: var(--body-font-color-bg-dark);
}
.ct-map__card h3,
.ct-map__card .subtitle {
    color: #ffffff;
}

@media only screen and (max-width: 991.98px) {
    .ct-form-card { padding: 28px 22px; }
    .ct-steps {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 36px;
    }
    .ct-step::before { top: -40px; }
    .ct-map iframe { height: 340px; }
    .ct-map__card {
        position: static;
        width: 100%;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Floating WhatsApp button
   -------------------------------------------------------------------------- */
.wa-float {
    position: fixed;
    right: 30px;
    bottom: 95px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    transition: transform .3s ease, box-shadow .3s ease;
}
.wa-float:hover,
.wa-float:focus-visible {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}
.wa-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}
/* quiet pulse so it is noticed without being loud */
.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid #25d366;
    animation: wa-pulse 2.8s ease-out infinite;
}
@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(1.7); opacity: 0; }
}
.wa-float__label {
    position: absolute;
    right: calc(100% + 12px);
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    color: #ffffff;
    background: var(--bg-dark-1);
    border-radius: 4px;
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}
.wa-float:hover .wa-float__label {
    opacity: 1;
    transform: none;
}

@media only screen and (max-width: 767px) {
    .wa-float {
        right: 20px;
        bottom: 80px;
        width: 48px;
        height: 48px;
    }
    .wa-float svg {
        width: 26px;
        height: 26px;
    }
    .wa-float__label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float::before {
        animation: none;
    }
}
