/* ==========================================================================
   Motomarine v3 — Buttons
   Square, flat buttons. Yantramanav sentence-case label, 1px borders on outlines,
   no lift / no drop shadow — hover darkens the fill and nudges the icon.
   ========================================================================== */

.cs-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    min-width: 160px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    line-height: 1;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cs-btn i {
    font-size: 16px;
    transition: var(--transition);
}
.cs-btn:hover i:last-child:not(:first-child) {
    transform: translateX(4px);
}

/* Sizes */
.cs-btn--sm {
    height: 42px;
    min-width: 0;
    padding: 0 20px;
    font-size: 12px;
}
.cs-btn--block {
    width: 100%;
}

/* --- Solid --- */
.cs-btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.cs-btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
}

.cs-btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}
.cs-btn-secondary:hover {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: var(--white);
}

.cs-btn-light {
    background: var(--light-bg);
    border-color: var(--light-bg);
    color: var(--secondary);
}
.cs-btn-light:hover {
    background: var(--light);
    border-color: var(--light);
    color: var(--secondary);
}

.cs-btn-white {
    background: var(--white);
    border-color: var(--white);
    color: var(--secondary);
}
.cs-btn-white:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
}

/* --- Outline --- */
.cs-btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.cs-btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.cs-btn-outline-secondary {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}
.cs-btn-outline-secondary:hover {
    background: var(--secondary);
    color: var(--white);
}

.cs-btn-outline-light {
    background: transparent;
    border-color: var(--border);
    color: var(--secondary);
}
.cs-btn-outline-light:hover {
    background: var(--light-bg);
    border-color: var(--border-strong);
    color: var(--secondary);
}

.cs-btn-outline-white {
    background: transparent;
    border-color: rgba(255, 255, 255, .4);
    color: var(--white);
}
.cs-btn-outline-white:hover {
    background: var(--white);
    color: var(--secondary);
}

/* --- Icon-only button --- */
.cs-btn-icon {
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 0;
}
.cs-btn-icon i {
    display: flex;
    line-height: 1;
    font-size: 18px;
}
.cs-btn-icon:hover i {
    transform: none;
}
.cs-btn-icon.cs-btn--sm {
    width: 42px;
    min-width: 42px;
    height: 42px;
}

/* --- Text / link button --- */
.cs-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 3px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--primary-ink);
    background: none;
    border: none;
    border-bottom: 2px solid var(--primary);
    cursor: pointer;
}
.cs-btn-link i {
    transition: var(--transition);
}
.cs-btn-link:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}
.cs-btn-link:hover i {
    transform: translateX(4px);
}
/* On dark surfaces: white label, red underline */
.cs-btn-link--white {
    color: var(--white);
}
.cs-btn-link--white:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* --- Call button: icon box + small label over the phone number --- */
.cs-call {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--heading);
}
.cs-call__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: var(--primary-tint-10);
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
    transition: background .2s, color .2s;
}
.cs-call:hover .cs-call__icon {
    background: var(--primary);
    color: var(--white);
}
.cs-call__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.cs-call__text small {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.cs-call__text strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading);
}
/* Round: solid red circle (hero style) */
.cs-call--round .cs-call__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 20px;
}
.cs-call--round:hover .cs-call__icon {
    background: var(--primary-hover);
    color: var(--white);
}
/* On dark: solid red box, white text */
.cs-call--white .cs-call__icon {
    background: var(--primary);
    color: var(--white);
}
.cs-call--white:hover .cs-call__icon {
    background: var(--white);
    color: var(--primary);
}
.cs-call--white .cs-call__text small {
    color: rgba(255, 255, 255, .72);
}
.cs-call--white .cs-call__text strong {
    color: var(--white);
}

/* Smaller icon buttons on phones */
@media (max-width: 767px) {
    .cs-call__icon {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }
    .cs-call--round .cs-call__icon {
        width: 48px;
        height: 48px;
    }
    .cs-call__text strong {
        font-size: 15px;
    }
    .cs-btn-icon {
        width: 40px;
        min-width: 40px;
        height: 40px;
    }
    .cs-btn-icon i {
        font-size: 16px;
    }
    .cs-btn-icon.cs-btn--sm {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }
}

/* --- Button row (group of buttons) --- */
.cs-btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.cs-btn-row--center {
    justify-content: center;
}
/* A button row that follows a grid or a card list needs its own gap,
   the row above it only carries gutters */
.cs-btn-row--spaced {
    margin-top: 40px;
}
@media (max-width: 767px) {
    .cs-btn-row--spaced {
        margin-top: 28px;
    }
}

/* Full-width CTA buttons on mobile */
@media (max-width: 585px) {
    .cs-hero__actions,
    .cs-banner__actions,
    .cs-btn-row {
        width: 100%;
    }
    .cs-hero__actions .cs-btn,
    .cs-banner__actions .cs-btn,
    .cs-cta .cs-btn,
    .cs-cta-bg__inner .cs-btn,
    .cs-btn-row .cs-btn {
        width: 100%;
        justify-content: center;
    }
}
