/* =========================================================
   ANILHA CAFÉ — MOBILE PROFISSIONAL V3
   Este arquivo atua somente até 768px.
   O desktop continua sendo controlado por style.css.
========================================================= */

/* Estado padrão do notebook */
.menu-mobile {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

@media (max-width: 768px) {

    :root {
        --mobile-header-height: 76px;
        --mobile-space: 20px;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    section {
        width: 100%;
        padding: 72px var(--mobile-space);
    }

    /* =========================
       HEADER
    ========================= */

   #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: var(--mobile-header-height);
    min-height: var(--mobile-header-height);

    padding: 8px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: rgba(8, 8, 8, .50);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    border-bottom: none;
    box-shadow: none;

    z-index: 100000;
}

    #header .logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    #header .logo a {
        display: flex;
        align-items: center;
    }

    #header .logo img {
        display: block;
        width: 104px;
        height: 58px;
        object-fit: contain;

        transform: none;
        transform-origin: center;
    }

    #header .logo img:hover {
        transform: none;
    }

    .header-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
        z-index: 100002;
    }

    /* Botão hambúrguer real: três linhas */
    .menu-mobile {
        position: relative;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 46px;
        height: 46px;
        padding: 0;

        border: 1px solid rgba(192,138,74,.26);
        border-radius: 14px;

        background: rgba(12,12,12,.44);
        color: transparent;
        font-size: 0;

        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-mobile::before,
    .menu-mobile::after,
    .menu-mobile span {
        content: "";
        position: absolute;
        left: 12px;

        width: 21px;
        height: 2px;

        border-radius: 999px;
        background: var(--gold-light, #d7a25d);

        transition:
            transform .28s ease,
            opacity .2s ease,
            top .28s ease;
    }

    .menu-mobile::before {
        top: 14px;
    }

    .menu-mobile::after {
        top: 28px;
    }

    .menu-mobile span {
        top: 21px;
    }

    .menu-mobile[aria-expanded="true"]::before {
        top: 21px;
        transform: rotate(45deg);
    }

    .menu-mobile[aria-expanded="true"]::after {
        top: 21px;
        transform: rotate(-45deg);
    }

    .menu-mobile[aria-expanded="true"] span {
        opacity: 0;
    }

    #header .cart-btn {
        flex: 0 0 auto;

        min-width: 76px;
        height: 48px;
        padding: 0 17px;

        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        border-radius: 999px;
        font-size: 14px;
    }

    #header .cart-icon {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    /* =========================
       MENU ABERTO
    ========================= */

    #menu {
        position: fixed;
        top: var(--mobile-header-height);
        left: 0;
        right: 0;

        width: 100%;
        height: calc(100dvh - var(--mobile-header-height));

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;

        padding: 38px 24px max(38px, env(safe-area-inset-bottom));

        background:
            radial-gradient(
                circle at 50% 0%,
                rgba(192,138,74,.12),
                transparent 38%
            ),
            rgba(8,8,8,.97);

        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-14px);

        transition:
            opacity .28s ease,
            transform .28s ease,
            visibility .28s ease;

        z-index: 100001;
    }

    #menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    #menu a {
        width: min(320px, 88vw);
        padding: 13px 18px;

        color: #fff;
        text-align: center;
        text-decoration: none;

        font-family: "Lora", serif;
        font-size: 25px;
        font-weight: 400;

        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    #menu a::after {
        display: none;
    }

    /* =========================
   HERO MOBILE
========================= */

@media (max-width: 768px){

    .hero{
        position:relative;

        width:100%;
        height:100vh;
        min-height:700px;

        overflow:hidden;
    }

    .hero-video{
        position:absolute;
        inset:0;

        width:100%;
        height:100%;

        object-fit:cover;
        object-position:68% 8%;
    }
.hero-content{
    position:absolute;

    left:24px;
    top:49%;   /* antes era 43% */

    width:calc(100% - 48px);
    padding:0;

    display:flex;
    flex-direction:column;
    align-items:flex-start;

    z-index:10;
}

    .hero h1{
        order:2;

        width:100%;
        max-width:320px;

        margin:0;

        font-size:34px;
        line-height:1.05;
        text-align:left;
    }

    .hero-buttons{
        order:1;

        width:100%;

        display:flex;
        justify-content:flex-start;
        align-items:center;

        margin:0 0 28px;
    }

    .btn-primary{
    width:210px;      /* antes: 240px */
    height:48px;      /* antes: 54px */

    padding:0 18px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:999px;

    font-size:15px;
    font-weight:600;
}

    .btn-primary:hover{
        transform:translateY(-3px);
    }

    .hero p{
        order:3;

        width:100%;
        max-width:260px;

        margin:18px 0 0;

        font-size:15px;
        line-height:1.6;
        text-align:left;
    }

}

    /* =========================
       TÍTULOS
    ========================= */

    .section-title {
        margin-bottom: 46px;
    }

    .section-title span {
        margin-bottom: 13px;
        font-size: 11px;
        letter-spacing: 3px;
    }

    .section-title h2 {
        font-size: clamp(34px, 9.5vw, 44px);
        line-height: 1.1;
        text-wrap: balance;
    }

    /* =========================
       HISTÓRIA
    ========================= */

    .about {
        display: flex;
        flex-direction: column;
        gap: 38px;
    }

    .about-image {
        width: 100%;
        order: 1;
    }

    .about-image::before {
        display: none;
    }

    .about-image img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;

        object-fit: contain;
        object-position: center;

        border-radius: 22px;
    }

    .about-image:hover img {
        transform: none;
    }

    .about-text {
        width: 100%;
        order: 2;
    }

    .about-text span {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .about-text h2 {
        margin-bottom: 23px;
        font-size: clamp(39px, 10.6vw, 49px);
        line-height: 1.04;
        text-wrap: balance;
    }

    .about-text p {
        margin-bottom: 17px;
        font-size: 15px;
        line-height: 1.8;
    }

    .about-text::after {
        margin-top: 26px;
    }

    .about-quote {
        margin-top: 28px;
        padding-left: 17px;

        font-size: 22px;
        line-height: 1.45;
    }

    .numbers {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;

        width: 100%;
        margin-top: 30px;
    }

    .numbers div:not(:last-child)::after {
        display: none;
    }

    .numbers h3 {
        font-size: 33px;
    }

    .numbers p {
        font-size: 13px;
    }

    /* =========================
       PRODUTO
    ========================= */

    .catalog {
        width: 100%;
    }

    .product {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: column;

        border-radius: 24px;
        overflow: hidden;
    }

    .product:hover {
        transform: none;
    }

    .product img {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;

        object-fit: contain;
        object-position: center;

        background: #101010;
    }

    .product:hover img {
        transform: none;
    }

    .product-info {
        width: 100%;
        padding: 32px 23px;
        justify-content: flex-start;
    }

    .product-tag {
        margin-bottom: 17px;
        padding: 7px 14px;
        font-size: 11px;
    }

    .product-info h3 {
        margin-bottom: 8px;
        font-size: 41px;
        line-height: 1.04;
    }

    .product-subtitle {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .product-info > p {
        margin-bottom: 25px;
        font-size: 14px;
        line-height: 1.78;
    }

    .product-description {
        margin-bottom: 26px;
        padding: 21px 19px;
        border-radius: 17px;
    }

    .product-description span {
        margin-bottom: 13px;
        font-size: 13px;
    }

    .product-description li {
        padding-left: 22px;
        font-size: 14px;
    }

    .price {
        margin: 4px 0 25px;
    }

    .price strong {
        font-size: 40px;
    }

    .grind-options,
    .sizes {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .grind-options button,
    .sizes button {
        min-width: 88px;
        padding: 13px 17px;
    }

    .add {
        width: 100%;
        height: 57px;
        font-size: 15px;
    }

    /* =========================
       DIFERENCIAIS
    ========================= */

    .feature-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 21px;
    }

    .feature-card {
        width: 100%;
        padding: 33px 23px;
        border-radius: 22px;
    }

    .feature-card:hover {
        transform: none;
    }

    .feature-card .icon {
        width: 76px;
        height: 76px;
        margin-bottom: 21px;
    }

    .feature-card .icon img {
        width: 44px;
        height: 44px;
    }

    .feature-card h3 {
        font-size: 25px;
    }

    .feature-card p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* =========================
       AVALIAÇÕES
    ========================= */

    .testimonials-container {
        width: 100%;
    }

    .testimonials-container h2 {
        margin-bottom: 41px;
        font-size: 39px;
        line-height: 1.13;
    }

    .review-form-box {
        width: 100%;
        max-width: 100%;

        margin-bottom: 44px;
        padding: 25px 19px;

        border-radius: 22px;
    }

    .review-form-box h3 {
        font-size: 25px;
    }

    .review-form-box input,
    .review-form-box textarea,
    .review-form-box select {
        padding: 16px;
        font-size: 14px;
    }

    .testimonials-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 21px;
    }

    .testimonial-card {
        width: 100%;
        padding: 27px 22px;
    }

    /* =========================
       NEWSLETTER
    ========================= */

    .newsletter {
        background-position: center;
    }

    .newsletter-box {
        width: 100%;
    }

    .newsletter-box h2 {
        font-size: 39px;
        line-height: 1.13;
    }

    .newsletter-box p {
        font-size: 15px;
        line-height: 1.7;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column;
        gap: 13px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        height: 57px;
        border-radius: 15px;
    }

    /* =========================
       CONTATO
    ========================= */

    .contact {
        width: 100%;
        padding: 72px var(--mobile-space);
    }

    .contact-container {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: column;
        gap: 31px;
    }

    .contact-info {
        width: 100%;
        gap: 17px;
    }

    .info-box {
        width: 100%;
        padding: 23px 20px;
        border-radius: 19px;
    }

    .info-box h3 {
        font-size: 20px;
    }

    .info-box p {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .contact-form {
        width: 100%;
        padding: 23px 19px;
        border-radius: 22px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 16px 17px;

        font-family: inherit;
        font-size: 14px;
    }

    .contact-form textarea {
        height: 160px;
    }

    .linha-dupla {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    /* =========================
       FOOTER
    ========================= */

    footer {
        width: 100%;
        padding: 60px var(--mobile-space) 28px;
    }

    .footer-content {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 33px;
        text-align: center;
    }

    .footer-content a:hover {
        padding-left: 0;
    }

    .copyright {
        margin-top: 37px;
        font-size: 12px;
        line-height: 1.7;
    }

    /* =========================
       CARRINHO
    ========================= */

    .cart {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        padding: 23px 18px;
    }

    .cart-header h2 {
        font-size: 27px;
    }

    #cart-list {
        width: 100%;
        padding-right: 3px;
    }

    .cart-empty {
        padding: 68px 10px;
    }

    .cart-footer {
        width: 100%;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .cart-footer p {
        font-size: 18px;
    }

    /* =========================
       CHECKOUT
    ========================= */

    .modal {
        padding: 15px;
    }

    .modal-box {
        width: 100%;
        max-width: 100%;
        max-height: 92dvh;

        padding: 24px 19px;
        overflow-y: auto;
    }
}

/* Ajuste extra para celulares estreitos */
@media (max-width: 390px) {
    #header {
        padding-inline: 12px;
    }

    #header .logo img {
        width: 91px;
    }

    .menu-mobile {
        width: 43px;
        height: 43px;
    }

    #header .cart-btn {
        min-width: 70px;
        padding-inline: 14px;
    }

    .hero h1 {
        font-size: clamp(37px, 11.2vw, 46px);
    }
}
@media (max-width: 768px) {

    main {
        margin: 0;
        padding: 0;
    }

    section.hero {
        margin: 0;
        padding: 0 !important;
        border: 0;
        background: #000;
    }

    .hero-video {
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
    }

}