/**
 * Seção: Pedido Online / Delivery (Uber Eats)
 * Exclusivo para os templates Casanova e Casanostra
 * 
 * - Fundo papel base #F6F1E8 com marca d'água geométrica e fade radial
 * - Botão Neubrutalista Uber Eats #06C167 com sombra #00733C
 * - Altura compacta ~140px centralizada (Figma 1280px x 140px)
 * 
 * @package GrupoCasaNova
 */

/* --------------------------------------------------------------------------
   Container Principal da Seção
   -------------------------------------------------------------------------- */
.section-delivery-cta {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(120px, 12vw, 140px);
    padding: clamp(32px, 3.5vw, 38px) clamp(20px, 4vw, 64px);
    background-color: var(--color-base-papel, #F6F1E8);
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}

/* Background Pattern & Fade Radial */
.section-delivery-cta__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.section-delivery-cta__pattern {
    position: absolute;
    inset: 0;
    background-image: url('../images/pattern-casanova.svg');
    background-repeat: repeat;
    background-position: center center;
    background-size: 240px 240px;
    opacity: 0.15;
}

.section-delivery-cta__fade {
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 50% at 50% 50%, rgba(246, 241, 232, 0) 0%, rgba(246, 241, 232, 0.3) 60%, #F6F1E8 100%);
}

/* --------------------------------------------------------------------------
   Container de Ação
   -------------------------------------------------------------------------- */
.section-delivery-cta__action {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Botão Neubrutalista Uber Eats
   -------------------------------------------------------------------------- */
.btn-delivery-cta {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px 24px 16px 32px;
    gap: clamp(16px, 2.5vw, 24px);
    min-width: clamp(280px, 32vw, 329.4px);
    height: 64px;
    background-color: #06C167;
    box-shadow: 2px 2px 0px #00733C;
    border-radius: 999px; /* Padrão pílula (Casanova) */
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

/* Formato Pílula (Casanova) */
.btn-delivery-cta--pill,
.section-delivery-cta--casanova .btn-delivery-cta {
    border-radius: 999px;
}

/* Formato Quadrado com cantos sutis (Casanostra) */
.btn-delivery-cta--square,
.section-delivery-cta--casanostra .btn-delivery-cta {
    border-radius: 4px;
}

.btn-delivery-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #00733C;
}

.btn-delivery-cta:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #00733C;
}

.btn-delivery-cta:focus-visible {
    outline: 2px solid #00733C;
    outline-offset: 4px;
}

/* Logotipo */
.btn-delivery-cta__logo {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 41.4px;
    height: 32px;
    flex-shrink: 0;
}

.btn-delivery-cta__logo img,
.btn-delivery-cta__logo svg {
    width: 100%;
    height: 100%;
    max-width: 41.4px;
    max-height: 32px;
    object-fit: contain;
    display: block;
}

/* Ajuste de espaçamento caso não tenha ícone */
.btn-delivery-cta--no-icon {
    padding: 16px 36px;
    justify-content: center;
}

/* Rótulo Textual */
.btn-delivery-cta__label {
    font-family: var(--font-serif, 'Source Serif Pro', 'Source Serif 4', Georgia, serif);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.28;
    letter-spacing: -0.005em;
    color: #142328;
    text-transform: uppercase;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Responsividade Mobile Estrita
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .section-delivery-cta {
        padding: 32px 16px;
        min-height: auto;
    }

    .btn-delivery-cta {
        width: 100%;
        min-width: 0;
        padding: 14px 20px;
        height: auto;
        min-height: 58px;
        gap: 16px;
    }

    .btn-delivery-cta__label {
        font-size: 19px;
    }
}
