/**
 * Seção 3: Fazer Pedido (Uber Eats) - Pizza a Pezzi
 * 
 * Fiel às especificações do Figma v3:
 * - Fundo papel base #F6F1E8 com watermark e fade radial
 * - Régua vermelha #A71712 (48px x 3px)
 * - Título em Source Serif 4/Pro SemiBold 44px
 * - Subtítulo editorial em Source Sans 3 18px
 * - Botão Neubrutalista Uber Eats #06C167 com sombra #00733C e logo oficial
 * 
 * @package GrupoCasaNova
 */

/* --------------------------------------------------------------------------
   Container Principal da Seção
   -------------------------------------------------------------------------- */
.section-fazer-pedido {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(64px, 7.5vw, 96px) clamp(20px, 5vw, 64px);
    gap: 40px;
    isolation: isolate;
    width: 100%;
    min-height: 415px;
    background-color: var(--color-base-papel, #F6F1E8);
    overflow: hidden;
    box-sizing: border-box;
}

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

.section-fazer-pedido__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-fazer-pedido__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%);
}

/* Camadas de Glow Ocultas por Especificação do Figma */
.section-fazer-pedido__glow-soft,
.section-fazer-pedido__glow-hard {
    display: none;
}

/* --------------------------------------------------------------------------
   Cabeçalho Editorial da Seção (SectionTitle)
   -------------------------------------------------------------------------- */
.section-fazer-pedido__header {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 24px;
    width: 100%;
    max-width: 596px;
    text-align: center;
    box-sizing: border-box;
}

/* Régua Superior (48px x 3px - Vermelho Pizza a Pezzi #A71712) */
.section-fazer-pedido__ruler {
    width: 48px;
    height: 3px;
    background-color: #A71712;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Grupo de Texto */
.section-fazer-pedido__text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Título da Seção (Title/Medium: Source Serif Pro, 600, 44px, line 106%, #111111) */
.section-fazer-pedido__title {
    font-family: var(--font-serif, 'Source Serif Pro', 'Source Serif 4', Georgia, serif);
    font-style: normal;
    font-weight: 600;
    font-size: clamp(32px, 4.5vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.015em;
    color: var(--color-neutral-900, #111111);
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Subtítulo Editorial (Body/Medium: Source Sans 3, 400, 18px, line 150%, #3A3733) */
.section-fazer-pedido__subtitle {
    font-family: var(--font-sans, 'Source Sans 3', sans-serif);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.5;
    color: var(--color-neutral-800, #3A3733);
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 596px;
}

.section-fazer-pedido__subtitle p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-family: inherit;
}

.section-fazer-pedido__subtitle p + p {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Botão Uber Eats (ButtonUberEats)
   Fundo verde oficial #06C167, sombra neubrutalista #00733C, formato pílula 999px
   -------------------------------------------------------------------------- */
.section-fazer-pedido__action {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn-ubereats {
    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;
    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;
}

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

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

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

/* Logotipo Uber Eats Vetorial / Imagem ACF (41.4px x 32px) */
.btn-ubereats__logo {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 41.4px;
    height: 32px;
    flex-shrink: 0;
}

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

/* Ajuste de espaçamento quando não houver ícone cadastrado */
.btn-ubereats--no-icon {
    padding: 16px 36px;
    justify-content: center;
}

/* Rótulo Textual (Subtitle/Medium: Source Serif Pro, 400, 24px, line 128%, #142328) */
.btn-ubereats__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-fazer-pedido {
        padding: 56px 20px;
        gap: 32px;
        min-height: auto;
    }

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

    .btn-ubereats__label {
        font-size: 19px;
    }
}
