/* ════════════════════════════════════════════════════════════════
   HOME PREMIUM — pmarau (carregado apenas na home)
   Tokens herdados de pmarau.css (:root). Prefixo: ph-
════════════════════════════════════════════════════════════════ */

/* ── Reveal on scroll (desativado se o usuário preferir) ── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1; transform: none; transition: none; }
    .ph-hero-video { display: none !important; }
}

/* below-the-fold rendering hint */
.ph-cv { content-visibility: auto; contain-intrinsic-size: 1px 480px; }

/* ════ 1. HERO CINEMATOGRÁFICO ════ */
.ph-hero {
    position: relative; overflow: hidden;
    min-height: clamp(560px, 92vh, 880px);
    display: flex; align-items: center;
    background: linear-gradient(160deg, var(--navy) 0%, #143a5e 50%, var(--ocean-dark) 100%);
    padding: clamp(96px, 12vh, 140px) 0 clamp(72px, 10vh, 110px);
}
.ph-hero-video, .ph-hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; background-size: cover; background-position: center;
    z-index: 0;
}
.ph-hero-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(165deg, rgba(7,22,44,.82) 0%, rgba(10,31,60,.55) 45%, rgba(8,40,64,.78) 100%);
}
.ph-hero-glow {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse 55% 60% at 82% 12%, rgba(0,180,160,.18), transparent 60%),
                radial-gradient(ellipse 45% 50% at 6% 95%, rgba(255,107,0,.16), transparent 55%);
}
.ph-hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
    gap: clamp(24px, 4vw, 56px); align-items: center; width: 100%;
}
.ph-hero h1 {
    color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 900; letter-spacing: -.035em; line-height: 1.06;
    margin: 14px 0 14px; text-wrap: balance;
}
.ph-hero-sub { color: rgba(255,255,255,.78); font-size: clamp(.95rem, 1.6vw, 1.1rem); line-height: 1.6; max-width: 480px; margin: 0 0 22px; }

.ph-search { background: #fff; border-radius: 999px; padding: 7px 7px 7px 18px; display: flex; align-items: center; gap: 10px; box-shadow: 0 18px 48px rgba(0,0,0,.32); }
.ph-search:focus-within { outline: 3px solid rgba(255,107,0,.45); outline-offset: 2px; }
.ph-search input { flex: 1; border: none; outline: none; font: inherit; font-size: max(16px, .95rem); color: var(--text); min-width: 0; background: none; }
.ph-search select { border: none; outline: none; font: inherit; font-size: .85rem; color: var(--text-muted); background: none; border-left: 1px solid var(--border); padding-left: 10px; max-width: 160px; }
.ph-search button { background: var(--orange); color: #fff; border: none; border-radius: 999px; padding: 11px 24px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.ph-search button:hover { background: #D95A00; }

.ph-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ph-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.88); font-size: .8rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; text-decoration: none; backdrop-filter: blur(6px); background: rgba(255,255,255,.06); transition: background .15s; }
.ph-chip:hover, .ph-chip:focus-visible { background: rgba(255,255,255,.16); color: #fff; }

.ph-stats { display: flex; gap: clamp(18px, 3vw, 32px); margin-top: 24px; flex-wrap: wrap; }
.ph-stat b { color: #fff; font-size: 1.3rem; font-weight: 850; }
.ph-stat span { display: block; color: rgba(255,255,255,.55); font-size: .75rem; }

.ph-live { display: flex; flex-direction: column; gap: 10px; }
.ph-live-card { display: flex; align-items: center; gap: 12px; background: rgba(13,32,58,.55); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; text-decoration: none; backdrop-filter: blur(10px); transition: background .15s, transform .15s; }
.ph-live-card:hover { background: rgba(20,45,78,.7); transform: translateY(-1px); }
.ph-live-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.ph-live-card small { display: block; color: rgba(255,255,255,.55); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ph-live-card strong { display: block; color: #fff; font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.ph-live-card > i { margin-left: auto; color: rgba(255,255,255,.35); }

/* card de lanchas (3 próximas) — sobrepõe o layout em linha */
.ph-live-boats { flex-direction: column; align-items: stretch; gap: 0; padding: 14px 16px 6px; }
.ph-live-boats-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.ph-live-boats-head > i { margin-left: auto; color: rgba(255,255,255,.35); }
.ph-live-boats-list { display: flex; flex-direction: column; }
.ph-live-boat { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px dashed rgba(255,255,255,.12); }
.ph-live-boat-time { flex-shrink: 0; width: 50px; color: #fff; font-size: .92rem; font-weight: 800; line-height: 1; }
.ph-live-boat-time em { display: block; font-style: normal; font-size: .56rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: rgba(123,216,232,.85); margin-top: 2px; }
.ph-live-boat-od { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.82); letter-spacing: -.01em; }
.ph-live-boat-od i { color: #5BC8DC; font-size: .9rem; vertical-align: -1px; }

.ph-hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; pointer-events: none; }
.ph-scroll-cue { position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.55); animation: phBounce 2.2s ease-in-out infinite; display: none; }
@keyframes phBounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ════ ESTRUTURA DE SEÇÃO ════ */
.ph-sec { padding: clamp(36px, 6vw, 64px) 0 0; }
.ph-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: clamp(18px, 3vw, 28px); flex-wrap: wrap; }
.ph-sec-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 850; letter-spacing: -.03em; margin: 0; }
.ph-sec-head p { color: var(--text-muted); font-size: .9rem; margin: 6px 0 0; max-width: 540px; }
.ph-more { font-size: .85rem; font-weight: 650; color: var(--ocean); text-decoration: none; white-space: nowrap; }
.ph-more:hover { text-decoration: underline; }

/* ════ 2. ATALHOS ════ */
.ph-quick { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 10px; }
.ph-tile { text-align: center; text-decoration: none; padding: 8px 2px; border-radius: 16px; transition: background .15s, transform .15s; }
.ph-tile:hover, .ph-tile:focus-visible { background: var(--surface); transform: translateY(-2px); }
.ph-tile-ic { width: 54px; height: 54px; margin: 0 auto 7px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.ph-tile span { font-size: .75rem; font-weight: 650; color: var(--text); letter-spacing: -.01em; }

/* ════ CLIMA ════ */
.ph-weather { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto; gap: 12px; align-items: stretch; background: var(--surface); border: 1.5px solid var(--border); border-radius: 18px; padding: 14px; }
.ph-wx { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.ph-wx i { font-size: 1.3rem; }
.ph-wx b { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.ph-wx span { display: block; font-size: .7rem; color: var(--text-faint); font-weight: 600; }
.ph-weather-cta { display: inline-flex; align-items: center; gap: 7px; align-self: center; font-size: .85rem; font-weight: 700; color: var(--ocean); text-decoration: none; padding: 0 10px; white-space: nowrap; }

/* ════ 3. BENTO LOCALIDADES ════ */
.ph-bento { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 160px 160px; gap: 12px; }
.ph-loc { position: relative; border-radius: var(--r-xl,18px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; text-decoration: none; background-size: cover; background-position: center; transition: transform .25s ease; }
.ph-loc:hover { transform: scale(1.015); }
.ph-loc::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,31,60,.05) 25%, rgba(10,31,60,.82) 100%); transition: background .25s; }
.ph-loc:hover::before { background: linear-gradient(180deg, rgba(10,31,60,.15) 15%, rgba(10,31,60,.88) 100%); }
.ph-loc > * { position: relative; }
.ph-loc strong { color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.ph-loc small { color: rgba(255,255,255,.78); font-size: .76rem; }
.ph-loc .ph-loc-cta { display: inline-flex; align-items: center; gap: 5px; color: #FFD7B8; font-size: .72rem; font-weight: 800; margin-top: 6px; opacity: 0; transform: translateY(4px); transition: all .22s; }
.ph-loc:hover .ph-loc-cta { opacity: 1; transform: none; }
.ph-loc--big { grid-row: span 2; }
.ph-loc--big strong { font-size: clamp(1.3rem, 2vw, 1.6rem); }

/* ════ 4. EXPERIÊNCIAS ════ */
.ph-exps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s4); }
.ph-exp { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl,18px); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.ph-exp:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.1); border-color: var(--teal); }
.ph-exp-img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; background: #155E75; }
.ph-exp-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ph-exp-title { font-size: .95rem; font-weight: 750; color: var(--text); letter-spacing: -.01em; line-height: 1.3; }
.ph-exp-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: .74rem; color: var(--text-faint); }
.ph-exp-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ph-exp-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 8px; }
.ph-exp-price { color: var(--orange); font-weight: 850; font-size: .92rem; }
.ph-exp-op { font-size: .72rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ════ 5. PLANEJE ════ */
.ph-plan { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.ph-plan-roteiro { background: linear-gradient(150deg, var(--navy), #15355e); border-radius: var(--r-xl,18px); padding: clamp(20px, 3vw, 30px); color: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.ph-plan-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl,18px); padding: clamp(20px, 3vw, 30px); }
/* item de saída (Próximas saídas) */
.ph-dep { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.ph-dep:last-of-type { border-bottom: none; }
.ph-dep-time { flex-shrink: 0; width: 52px; text-align: center; background: var(--ocean-pale); border-radius: 10px; padding: 5px 0; line-height: 1.1; }
.ph-dep-time b { display: block; font-size: .92rem; font-weight: 850; color: var(--ocean-dark); }
.ph-dep-time small { font-size: .6rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ocean); }
.ph-dep-route { min-width: 0; flex: 1; }
.ph-dep-od { display: block; font-size: .9rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.ph-dep-od i { color: var(--ocean); font-size: .95rem; vertical-align: -1px; }
.ph-dep-via { display: block; font-size: .74rem; color: var(--ocean); margin-top: 1px; }
.ph-dep-via i { font-size: .68rem; opacity: .7; }

/* ════ 6. MAPA ════ */
.ph-map-wrap { position: relative; width: 100%; max-width: 100%; border-radius: var(--r-xl,18px); overflow: hidden; border: 1.5px solid var(--border); aspect-ratio: 21 / 8; min-height: 300px; background: var(--ocean-pale); }
.ph-map-wrap #homeMap { position: absolute; inset: 0; z-index: 1; }
.ph-map-cta { position: absolute; z-index: 500; bottom: 16px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; font-size: .875rem; font-weight: 700; padding: 11px 20px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.ph-map-cta:hover { background: #143a5e; }
.ph-map-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ocean); z-index: 0; }

/* ════ 7. NEGÓCIOS / GASTRONOMIA (cards) ════ */
.ph-estabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s4); }
.ph-estabs--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.ph-estab { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl,18px); overflow: hidden; text-decoration: none; transition: box-shadow .15s, border-color .15s, transform .15s; display: block; }
.ph-estab:hover { border-color: var(--orange); box-shadow: 0 12px 30px rgba(0,0,0,.09); transform: translateY(-2px); }
.ph-estab-cover { aspect-ratio: 16 / 9; background-size: cover; background-position: center; position: relative; }
.ph-open { position: absolute; top: 9px; left: 9px; font-size: .66rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; }

/* ════ 8. AGENDA + PROMOS / NOTÍCIAS ════ */
.ph-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s6); align-items: start; }
.ph-row-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px; text-decoration: none; margin-bottom: 9px; transition: border-color .15s; }
.ph-row-card:hover { border-color: var(--ocean); }
.ph-date-chip { width: 46px; flex-shrink: 0; text-align: center; background: var(--orange-pale); border-radius: 11px; padding: 6px 0; }
.ph-date-chip b { display: block; font-size: 1.05rem; font-weight: 850; color: #D95A00; line-height: 1.1; }
.ph-date-chip span { font-size: .6rem; font-weight: 800; color: #D95A00; letter-spacing: .05em; }
.ph-promo-chip { flex-shrink: 0; background: #FCE7F3; color: #BE185D; font-size: .78rem; font-weight: 850; padding: 8px 11px; border-radius: 11px; }
.ph-flash { display: inline-flex; align-items: center; gap: 4px; font-size: .64rem; font-weight: 800; color: #B45309; background: #FEF3C7; padding: 2px 8px; border-radius: 99px; }

/* ════ 11. FIDELIDADE / CUPONS ════ */
.ph-loyalty { background: linear-gradient(140deg, #0c2c50, var(--navy)); border-radius: var(--r-xl,18px); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; overflow: hidden; position: relative; }
.ph-loyalty::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 70% at 90% 10%, rgba(255,107,0,.16), transparent 60%); pointer-events: none; }
.ph-loyalty > * { position: relative; }
.ph-loyal-feats { display: grid; gap: 10px; }
.ph-loyal-feat { display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; padding: 11px 14px; color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; }
.ph-loyal-feat i { color: #FFB380; font-size: 1.1rem; flex-shrink: 0; }

/* ════ EMERGÊNCIA ════ */
.ph-sos { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: var(--s4) var(--s5); }
.ph-sos-label { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 750; color: var(--text); white-space: nowrap; }
.ph-sos-items { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.ph-sos-item { display: inline-flex; align-items: baseline; gap: 6px; border: 1.5px solid #FCA5A5; color: #B91C1C; padding: 7px 13px; border-radius: 12px; text-decoration: none; line-height: 1.2; }
.ph-sos-item .n { font-size: .8rem; font-weight: 700; }
.ph-sos-item .p { font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-sos-item:hover, .ph-sos-item:focus-visible { background: #FEF2F2; }
.ph-sos-all { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--ocean); font-weight: 700; font-size: .82rem; text-decoration: none; white-space: nowrap; }
.ph-sos-all:hover, .ph-sos-all:focus-visible { text-decoration: underline; }

/* ════ BADGE PRÉVIA ════ */
.ph-preview-badge { position: fixed; bottom: 18px; left: 18px; z-index: 9999; display: flex; align-items: center; gap: 9px; background: var(--navy); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: .8rem; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.ph-preview-badge a { color: #7BD8E8; text-decoration: none; }

/* foco visível global da home */
.ph-hero a:focus-visible, .ph-tile:focus-visible, .ph-loc:focus-visible, .ph-exp:focus-visible,
.ph-estab:focus-visible, .ph-row-card:focus-visible, .ph-more:focus-visible {
    outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 12px;
}

/* ════ RESPONSIVO ════ */
@media (max-width: 1024px) {
    .ph-exps { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ph-estabs--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ph-weather { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ph-weather-cta { grid-column: 1 / -1; justify-content: center; padding: 6px 0 2px; }
}
@media (max-width: 900px) {
    .ph-hero { min-height: 0; padding: 92px 0 64px; }
    .ph-hero-grid { grid-template-columns: minmax(0,1fr); gap: var(--s6); }
    .ph-hero-grid > * { min-width: 0; }
    .ph-quick { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
    .ph-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 140px 140px; }
    .ph-loc--big { grid-column: span 2; grid-row: span 1; }
    .ph-plan, .ph-split { grid-template-columns: 1fr; }
    .ph-estabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ph-loyalty { grid-template-columns: 1fr; }
    .ph-map-wrap { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
    .ph-search select { display: none; }
    .ph-estabs, .ph-estabs--4, .ph-exps { grid-template-columns: 1fr; }
    .ph-weather { grid-template-columns: 1fr 1fr; }
    .ph-tile-ic { width: 48px; height: 48px; font-size: 1.25rem; }
    /* Emergência: empilha o rótulo, grade 2-col de cartões e "Diretório" embaixo */
    .ph-sos { flex-direction: column; align-items: stretch; gap: 10px; }
    .ph-sos-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
    .ph-sos-item { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1px; padding: 8px 10px; }
    .ph-sos-item .n { font-size: .72rem; }
    .ph-sos-item .p { font-size: .9rem; }
    .ph-sos-all { margin-left: 0; justify-content: center; padding-top: 2px; }
}
