/*
Theme Name: Oahu Pokeshop
Theme URI: https://oahupoke.com.br
Author: Felipe Baruel
Description: Tema do Oahu Pokeshop — Culinária Havaiana. Home e página Seja um Franqueado, convertidas do design Claude Design "Oahu Poke HTML conversion".
Version: 1.4.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oahu-pokeshop
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.82;
}

::placeholder {
  color: #8a8a8a;
}

.oahu-wrap {
  color: #1c1c1c;
  overflow-x: hidden;
}

.oahu-wrap--home {
  font-family: 'Special Elite', monospace;
}

.oahu-wrap--franqueado {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
}

/* Campo isca anti-spam (honeypot) — fora da tela, sem afetar o layout. */
.oahu-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Nossas Lojas: uma faixa por unidade (fotos de um lado, dados do outro) ── */
.oahu-unidades {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
/* Cada unidade é um card branco arredondado sobre o fundo azul. */
.oahu-unidade {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 40px;
  align-items: center;
  text-align: left;
  background: #ffffff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}
.oahu-unidade--inv .oahu-unidade__fotos {
  order: 2;
}
.oahu-loja__tag {
  display: block;
  color: #2f7fc3;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.oahu-loja__capa,
.oahu-loja__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #eef2f5;
  cursor: zoom-in;
}
.oahu-loja__capa img,
.oahu-loja__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/* Capa sempre numa caixa 3:2 (mesma altura em todas as unidades). Fotos horizontais
   preenchem a caixa; fotos verticais aparecem inteiras, centralizadas, com sobras brancas. */
.oahu-loja__capa img {
  aspect-ratio: 3 / 2;
}
.oahu-unidade--retrato .oahu-loja__capa {
  background: #ffffff;
}
.oahu-unidade--retrato .oahu-loja__capa img {
  object-fit: contain;
}
.oahu-loja__thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.oahu-loja__thumb {
  border-radius: 12px;
}
.oahu-loja__thumb img {
  aspect-ratio: 1 / 1;
}
.oahu-loja__capa:hover img,
.oahu-loja__thumb:hover img {
  opacity: 0.88;
}
.oahu-unidade__info {
  color: #1c1c1c;
}
.oahu-unidade__bairro {
  margin: 8px 0 0;
  font-size: 17px;
  letter-spacing: 0.4px;
}
.oahu-unidade__dados {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
}
.oahu-unidade__dados li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.oahu-unidade__dados a {
  color: #1c1c1c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.oahu-unidade__ico {
  flex: 0 0 18px;
  margin-top: 2px;
  color: #2f7fc3;
}
.oahu-unidade__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
/* Botões no estilo do linktree das unidades: pílula branca com o logo redondo à esquerda. */
.oahu-lk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 5px 18px 5px 5px;
  border: 1.5px solid #1c1c1c;
  border-radius: 999px;
  background: #ffffff;
  color: #1c1c1c;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.oahu-lk:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  color: #1c1c1c;
}
.oahu-lk__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f5;
  color: #1c1c1c;
}
.oahu-lk__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oahu-lk__label {
  line-height: 1.2;
}
.oahu-lk--whats .oahu-lk__icon {
  background: #25d366;
  color: #ffffff;
}
.oahu-lk--anotaai .oahu-lk__icon {
  background: #2f7fc3;
  color: #ffffff;
}
.oahu-lk--pedido .oahu-lk__icon {
  background: #f2a900;
  color: #1c1c1c;
}
.oahu-lk--mapa .oahu-lk__icon {
  background: #e34c3c;
  color: #ffffff;
}
.oahu-lk--linktree {
  background: #1c1c1c;
  color: #ffffff;
}
.oahu-lk--linktree:hover {
  color: #ffffff;
}
.oahu-lk--linktree .oahu-lk__icon {
  background: #ffffff;
  color: #1c1c1c;
}
@media (max-width: 760px) {
  .oahu-unidade {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 16px;
    border-radius: 22px;
    text-align: center;
  }
  .oahu-unidade--inv .oahu-unidade__fotos {
    order: 0;
  }
  .oahu-unidade__dados li,
  .oahu-unidade__links {
    justify-content: center;
  }
  .oahu-unidade__dados li {
    text-align: left;
  }
  .oahu-loja__thumbs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .oahu-loja__thumb {
    flex: 0 0 31%;
    scroll-snap-align: start;
  }
  .oahu-loja__thumbs {
    grid-template-columns: none !important;
  }
}

/* ── Lightbox das lojas ── */
.oahu-lb[hidden] {
  display: none;
}
.oahu-lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 30, 50, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.oahu-lb__figure {
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.oahu-lb__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 2px solid #ffffff;
  background: #000;
}
.oahu-lb__caption {
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.oahu-lb__close,
.oahu-lb__nav {
  position: absolute;
  background: #ffffff;
  color: #1c1c1c;
  border: 1.5px solid #1c1c1c;
  width: 46px;
  height: 46px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oahu-lb__close {
  top: 18px;
  right: 18px;
}
.oahu-lb__nav {
  top: 50%;
  transform: translateY(-50%);
}
.oahu-lb__nav--prev { left: 18px; }
.oahu-lb__nav--next { right: 18px; }
.oahu-lb--single .oahu-lb__nav { display: none; }
@media (max-width: 640px) {
  .oahu-lb__nav { width: 38px; height: 38px; font-size: 24px; top: auto; bottom: 22px; transform: none; }
  .oahu-lb__img { max-height: 72vh; }
}

/* ── Menu mobile (hambúrguer) e hero mais baixo em telas pequenas ── */
.oahu-burger {
  display: none;
  position: absolute;
  top: 26px;
  right: 18px;
  z-index: 30;
  width: 44px;
  height: 40px;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.oahu-burger span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.oahu-burger--aberto span:nth-child(1) {
  transform: translateY(12.5px) rotate(45deg);
}
.oahu-burger--aberto span:nth-child(2) {
  opacity: 0;
}
.oahu-burger--aberto span:nth-child(3) {
  transform: translateY(-12.5px) rotate(-45deg);
}
.oahu-menu-mobile[hidden] {
  display: none;
}
.oahu-menu-mobile {
  display: none;
}
@media (max-width: 760px) {
  .oahu-header {
    position: relative !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    padding: 14px 64px 0 !important;
  }
  .oahu-hero .oahu-header {
    position: absolute !important;
  }
  .oahu-nav {
    display: none !important;
  }
  .oahu-header__logo {
    height: 84px !important;
  }
  .oahu-burger {
    display: flex;
  }
  .oahu-menu-mobile {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 25;
    margin-top: 10px;
    padding: 10px 0 14px;
    background: rgba(31, 100, 160, 0.97);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }
  .oahu-menu-mobile a {
    display: block;
    padding: 12px 24px;
    color: #ffffff;
    font-family: 'Special Elite', monospace;
    font-size: 20px;
    text-align: center;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .oahu-menu-mobile a:last-child {
    border-bottom: 0;
  }
  /* Hero: em vez de 100vh, altura proporcional ao banner. */
  .oahu-hero {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
    max-height: 78vh;
    background-size: cover !important;
    background-position: center 60% !important;
  }
}

/* ── Seja um franqueado: ajustes para celular ── */
@media (max-width: 760px) {
  /* Hero: escurece a foto atrás do texto para dar leitura. */
  .fq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 60, 110, 0.55) 0%, rgba(20, 60, 110, 0.78) 45%, rgba(20, 60, 110, 0.6) 100%);
    pointer-events: none;
  }
  .fq-hero .oahu-header,
  .fq-hero__conteudo {
    position: relative;
    z-index: 1;
  }
  .fq-hero__conteudo {
    padding: 24px 20px 48px !important;
    gap: 28px !important;
  }
  .fq-hero__conteudo p {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  }
  .fq-galeria {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 0 8px;
  }
  .fq-poke {
    grid-template-columns: 1fr !important;
  }
  .fq-poke > div:first-child {
    min-height: 240px !important;
  }
  .fq-poke > div:last-child {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 36px 22px 44px !important;
  }
  .fq-qualidades__circulo {
    display: none;
  }
  .fq-qualidades > div:nth-child(2) {
    min-height: 220px !important;
    flex-basis: 100% !important;
  }
  .fq-qualidades > div:nth-child(3) {
    padding: 40px 16px 32px !important;
  }
  .fq-qualidades__grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .fq-qualidades__grid > div {
    padding: 52px 22px 32px !important;
  }
  /* Seções com texto sobre foto: o texto ocupa a largura toda, com um fundo
     translúcido por trás para continuar legível. */
  .fq-sobre-foto {
    min-height: 0 !important;
  }
  .fq-sobre-foto__texto {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    background: rgba(28, 70, 120, 0.72);
    padding: 40px 22px !important;
  }
  .fq-delivery {
    height: auto !important;
    min-height: 0 !important;
  }
  .fq-delivery > div {
    padding: 44px 22px !important;
    background: rgba(28, 70, 120, 0.72);
  }
  .fq-timeline {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .fq-timeline img {
    min-width: 900px;
  }
}
