/* FRIATO — Onde comprar. Usa os componentes do design system do site (fr-section, fr-h2, fr-card, fr-pill, fr-form…);
   aqui só o que é específico da página. Sem fontes nem cores próprias: tudo vem dos tokens --fr-*. */

/* Topo */
.oc-hero { padding-bottom: clamp(72px, 9vw, 120px); }
.oc-hero .fr-h1 { max-width: 20ch; }
.oc-hero__lead { color: rgba(255, 255, 255, .92); max-width: 56ch; margin: 0; }
.oc-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Cartão do representante / equipe comercial: sobe sobre o topo */
.oc-reps { position: relative; z-index: 2; margin-top: -52px; display: grid; gap: 14px; }
.oc-rep {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px;
    padding: 22px 26px;
    background: var(--fr-white);
    border: 1px solid var(--fr-sand);
    border-radius: var(--fr-radius-card);
    box-shadow: var(--fr-shadow-lift);
}
.oc-rep__ph {
    width: 72px; height: 72px; flex: 0 0 auto; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--fr-g-brand); color: var(--fr-white);
    font-size: 28px; font-weight: 700;
}
.oc-rep__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-rep__meta { display: grid; gap: 2px; font-size: 15px; color: var(--fr-ink); min-width: 0; }
.oc-rep__meta small { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fr-red); }
.oc-rep__meta strong { font-size: 18px; color: var(--fr-ink); }
.oc-rep__meta a { color: var(--fr-wine) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(154, 42, 18, .3); overflow-wrap: anywhere; }
.oc-rep__meta a:hover { text-decoration-color: currentColor; }

/* Grades de cartões */
.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: 28px; }
.oc-grid > .fr-card { height: auto; }
.oc-card-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fr-muted-text); }
.oc-card-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--fr-sand-light); }
.oc-tag {
    align-self: flex-start; padding: 4px 12px; border-radius: 999px;
    background: var(--fr-gold); color: var(--fr-wine-dark);
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.oc-card--on { border-color: var(--fr-gold); }
.oc-prose { max-width: 70ch; }
.oc-prose p, .oc-text p { margin: 0 0 14px; font-size: 16px; line-height: 1.8; }
.oc-text { max-width: 70ch; margin-top: 16px; }

/* Segmentos */
.oc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.oc-chips li {
    display: inline-flex; align-items: center; min-height: 38px; padding: 6px 18px; border-radius: 999px;
    background: var(--fr-white); border: 1px solid var(--fr-sand);
    font-size: 14px; font-weight: 700; color: var(--fr-wine);
}

/* Passos */
.oc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin: 28px 0 0; padding: 0; list-style: none; }
.oc-steps li { padding: 22px; background: var(--fr-white); border: 1px solid var(--fr-sand); border-radius: var(--fr-radius-border-card); }
.oc-steps b {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--fr-g-brand); color: var(--fr-white); font-size: 15px; margin-bottom: 12px;
}
.oc-steps h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--fr-ink); }
.oc-steps p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fr-muted-text); }

/* Listas de links (cidades, estados) */
.oc-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.oc-links a { background: var(--fr-white); box-shadow: inset 0 0 0 1px var(--fr-sand); }
.oc-links a:hover { background: var(--fr-red); }
.oc-links .fr-tag--plain { background: var(--fr-sand-light); font-weight: 400; color: var(--fr-muted-text) !important; }
.oc-states { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.oc-states a {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 999px; background: var(--fr-white); border: 1px solid var(--fr-sand);
    font-size: 15px; font-weight: 700; color: var(--fr-ink) !important;
    transition: border-color .2s, box-shadow .25s var(--fr-ease), transform .25s var(--fr-ease);
}
.oc-states a:hover { border-color: var(--fr-red); transform: translateY(-2px); box-shadow: var(--fr-shadow-soft); }
.oc-states small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fr-muted-text); }
.oc-states .is-on a { background: var(--fr-sand-light); border-color: var(--fr-gold); }
.oc-states .is-on small { color: var(--fr-red); }
.oc-region { margin: 30px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--fr-red); }

/* Formulário (usa .fr-form do site) */
.oc-form { max-width: 760px; margin-top: 28px; }
.oc-form legend { padding: 0; }
.oc-form .fr-chips { margin-top: 8px; }
.oc-form .fr-form__consent { margin-top: 14px; }
.oc-form__note { margin: 0; }
.oc-err { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--fr-red); }
.oc-note { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--fr-radius-border-card); font-size: 15px; font-weight: 700; }
.oc-note--ok { background: #eaf6ea; color: #1f5a22; border: 1px solid #bfe0bf; }
.oc-note--bad { background: #fff1f0; color: var(--fr-red); border: 1px solid #f3c4c0; }
.oc-note[hidden] { display: none; }
.oc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Perguntas frequentes (mesmo visual da página Contato) */
.oc-faq { display: grid; gap: 10px; max-width: 920px; margin-top: 28px; }
.oc-faq .fr-faq__item {
    border-radius: var(--fr-radius-border-card); background: var(--fr-white); border: 1px solid var(--fr-sand);
    transition: box-shadow .25s var(--fr-ease), border-color .2s;
}
.oc-faq .fr-faq__item[open] { border-color: transparent; box-shadow: 0 12px 28px rgba(58, 18, 8, .08); }
.oc-faq .fr-faq__item summary { position: relative; list-style: none; padding: 18px 56px 18px 22px; font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--fr-ink); cursor: pointer; }
.oc-faq .fr-faq__item summary::-webkit-details-marker { display: none; }
.oc-faq .fr-faq__item summary::after {
    content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
    background: var(--fr-sand-light) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%23D4261F' stroke-width='2' d='M1 1l5 5 5-5'/%3e%3c/svg%3e") center / 10px no-repeat;
    transition: transform .3s var(--fr-ease);
}
.oc-faq .fr-faq__item[open] summary::after { transform: rotate(180deg); }
.oc-faq .fr-faq__item summary:hover { color: var(--fr-red); }
.oc-faq .fr-faq__answer { padding: 0 22px 20px; font-size: 15px; line-height: 1.75; }
.oc-faq .fr-faq__answer p:last-child { margin-bottom: 0; }

/* WhatsApp flutuante (canto esquerdo: o botão "topo" fica na direita) */
.oc-wa { position: fixed; left: 16px; bottom: 16px; z-index: 90; box-shadow: var(--fr-shadow-lift); }

.oc-more { margin-top: 28px; }

@media (max-width: 575.98px) {
    .oc-btns .fr-pill { width: 100%; justify-content: center; }
    .oc-rep { padding: 18px; }
    .oc-reps { margin-top: -40px; }
}
@media (prefers-reduced-motion: reduce) { .oc-states a { transition: none; } }

/* ---------- Ícones ---------- */
.oc-i { width: 22px; height: 22px; flex: 0 0 auto; }
.oc-i--sm { width: 18px; height: 18px; }
.oc-i--xs { width: 15px; height: 15px; margin-right: 6px; }
.oc-h2ic { display: inline-flex; vertical-align: middle; width: 44px; height: 44px; margin-right: 12px; align-items: center; justify-content: center; border-radius: 50%; background: var(--fr-g-brand); color: var(--fr-white); }
.oc-h2ic .oc-i { width: 24px; height: 24px; }
.fr-pill .oc-i { margin-right: 2px; }
.fr-tag .oc-i--xs { color: var(--fr-red); }
.fr-tag:hover .oc-i--xs { color: var(--fr-white); }

/* ---------- Topo com imagem da cidade ---------- */
.oc-hero { isolation: isolate; }
.oc-hero__in { position: relative; z-index: 2; }
.oc-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.oc-hero--img::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(90, 26, 12, .92) 0%, rgba(154, 42, 18, .82) 38%, rgba(212, 38, 31, .55) 70%, rgba(223, 131, 39, .35) 100%);
}
.oc-hero__mark { position: absolute; right: -4%; bottom: -14%; width: clamp(240px, 36vw, 520px); height: auto; color: rgba(255, 212, 90, .16); stroke-width: .6; z-index: 0; pointer-events: none; }
.oc-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; max-width: 880px; margin: 34px 0 0; padding: 0; list-style: none; }
.oc-trust li { display: flex; align-items: center; gap: 10px; color: var(--fr-white); font-size: 14px; font-weight: 700; }
.oc-trust .oc-i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: var(--fr-gold-light); }

/* ---------- Cartões de contato (distribuidor / representante) ---------- */
.oc-contacts { display: grid; gap: 16px; grid-template-columns: 1fr; }
.oc-contacts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oc-contacts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oc-contact {
    display: flex; flex-direction: column; gap: 14px; padding: 22px 24px;
    background: var(--fr-white); border: 1px solid var(--fr-sand); border-radius: var(--fr-radius-card); box-shadow: var(--fr-shadow-lift);
}
.oc-contact.is-near { border-color: var(--fr-gold); box-shadow: 0 0 0 3px rgba(245, 181, 27, .35), var(--fr-shadow-lift); }
.oc-contact__top { display: flex; align-items: center; gap: 14px; }
.oc-contact__ph { width: 64px; height: 64px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: var(--fr-g-brand); color: var(--fr-white); }
.oc-contact__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-contact__ph .oc-i { width: 30px; height: 30px; }
.oc-contact__id { min-width: 0; }
.oc-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--fr-sand-light); color: var(--fr-wine); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.oc-badge--gold { background: var(--fr-gold); color: var(--fr-wine-dark); }
.oc-contact__name { margin: 6px 0 0; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--fr-ink); overflow-wrap: anywhere; }
.oc-contact__name small { display: block; font-size: 13px; font-weight: 400; color: var(--fr-muted-text); }
.oc-contact__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--fr-ink); }
.oc-contact__list li { display: flex; align-items: flex-start; gap: 10px; }
.oc-contact__list .oc-i { width: 18px; height: 18px; margin-top: 2px; color: var(--fr-red); }
.oc-contact__list a { color: var(--fr-wine) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(154, 42, 18, .3); }
.oc-contact__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.oc-contact__cta .fr-pill { flex: 1 1 130px; justify-content: center; min-height: 46px; }
.oc-more-contacts { margin: 16px 4px 0; }
.oc-rep__ph .oc-i { width: 30px; height: 30px; }

/* ---------- Cartões das linhas (com foto de produto) ---------- */
.oc-fam { overflow: hidden; }
.oc-fam__media { position: relative; aspect-ratio: 4 / 3; background: var(--fr-sand-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.oc-fam__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s var(--fr-ease); }
a.oc-fam:hover .oc-fam__media img { transform: scale(1.05); }
.oc-fam__icon { position: absolute; left: 14px; top: 14px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--fr-red); color: var(--fr-white); box-shadow: var(--fr-shadow-soft); }
.oc-fam__icon .oc-i { width: 22px; height: 22px; }
.oc-fam__media:not(:has(img)) { aspect-ratio: auto; min-height: 96px; background: var(--fr-g-brand); }
.oc-fam__media:not(:has(img)) .oc-fam__icon { position: static; width: 56px; height: 56px; background: rgba(255, 255, 255, .18); }
.oc-fam__icon--inline { position: static; margin-bottom: 4px; }

/* ---------- Segmentos e passos com ícone ---------- */
.oc-chips li .oc-i { color: var(--fr-red); margin-right: 8px; }
.oc-steps__ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%; background: var(--fr-g-brand); color: var(--fr-white); }
.oc-steps__ic .oc-i { width: 24px; height: 24px; }

/* ---------- Formulário ---------- */
.oc-forward { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; padding: 12px 16px; border-radius: var(--fr-radius-border-card); background: var(--fr-sand-light); font-size: 14px; color: var(--fr-ink); }
.oc-forward .oc-i { margin-top: 2px; color: var(--fr-red); }

@media (max-width: 991.98px) {
    .oc-contacts--2, .oc-contacts--3 { grid-template-columns: 1fr; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .oc-contacts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
