/*
Theme Name: Mini Molo
Theme URI: https://maszbaboplacek.com.pl
Author: Studio ABS
Description: Motyw dla restauracji Mini Molo - ciemny styl. ABSPOS POS. Tylko zamowienia online.
Version: 3.3.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimolo
Tags: dark, restaurant, food, minimal, one-page, pos
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:      #0f0f0f;
  --c-bg2:     #161616;
  --c-bg3:     #1e1e1e;
  --c-border:  #2e2e2e;
  --c-gold:    #bf0071;
  --c-gold-l:  #e040ab;
  --c-text:    #f0ede8;
  --c-text2:   #c0b0b8;
  --c-text3:   #806070;
  --c-white:   #ffffff;
  --font-head: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,.5);
  --tr:        .25s ease;
  --max-w:     1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--c-gold); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--c-gold-l); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-white);
  line-height: 1.1;
  letter-spacing: .06em;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px) !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
}

.site-branding {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-branding-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(320px, 70vw);
  object-fit: contain;
  object-position: left center;
}

.header-inner .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.header-inner .custom-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(320px, 70vw);
  object-fit: contain;
  object-position: left center;
}

.site-branding-text {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: .12em;
  color: var(--c-gold-l);
  line-height: 1.1;
  max-width: min(320px, 70vw);
}

.site-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: #000;
}

.site-hero--plain {
  min-height: 48vh;
  padding: 56px 0 72px;
}

.site-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 28px;
  max-width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-gold);
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 36px; height: 1px;
  background: var(--c-gold);
  opacity: .5;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 400;
  color: var(--c-white);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
  margin-bottom: 18px;
  line-height: .92;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(.88rem, 2vw, 1.1rem);
  color: rgba(240,237,232,.6);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--c-gold);
  color: var(--c-white) !important;
  padding: 15px 42px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  box-shadow: 0 4px 24px rgba(191,0,113,.35);
  display: inline-block;
}
.btn-primary:hover {
  background: var(--c-gold-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(191,0,113,.55);
  color: var(--c-white) !important;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-top: 60px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}
.section-label {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-info-section {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 48px 0;
}

.info-address-wrap {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 36px;
}

.info-address-photo {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-address-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-address-photo-placeholder {
  color: var(--c-text3);
  font-size: .7rem;
  text-align: center;
  padding: 12px;
  line-height: 1.4;
}

.info-address-text { flex: 1; }

.info-address-label {
  font-size: .65rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.info-address-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--c-white);
  letter-spacing: .08em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.info-address-street {
  font-size: .95rem;
  color: var(--c-text2);
  font-weight: 400;
}

.info-comment-box {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.info-comment-box p {
  font-size: .85rem;
  color: var(--c-text2);
  line-height: 1.8;
  margin-bottom: 14px;
}

.info-comment-box p:last-child {
  margin-bottom: 0;
}

.site-main {
  padding-bottom: 80px;
}

/*
 * Wtyczka (np. ABSPOS): tryb „cała wysokość” ustawiasz w panelu wtyczki.
 * Bez skryptu rodzica iframe czasem dostaje zbyt małą wysokość po kliknięciach
 * wewnątrz ramki — min-height z dvh to dolna granica (nie blokuje większej wysokości).
 */
#menu .container,
#menu .entry-content,
.site-main#menu {
  overflow: visible;
  max-height: none;
}

#menu iframe,
.site-main iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  vertical-align: top;
}

/* Blok z menu: iframe nie może się „zapaść” poniżej widoku (typowe po SPA w środku). */
#menu iframe {
  min-height: calc(100vh - 140px);
  min-height: calc(100dvh - 140px);
}

/* Inne strony z iframe w .site-main — bez wymuszania wysokości. */
.site-main:not(#menu) iframe {
  min-height: 0;
}

.abspos-menu,
.abspos_menu_wrap,
[class*="abspos"] {
  color: var(--c-text) !important;
  font-family: var(--font-body) !important;
}

.site-footer {
  background: #000;
  border-top: 1px solid #141414;
  padding: 40px 28px 28px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 12px;
}
.footer-logo img,
.footer-logo .footer-logo-img,
.footer-logo .footer-logo-file {
  max-height: 72px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.footer-brand-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: .1em;
  color: var(--c-text2);
  line-height: 1.2;
}

.footer-line {
  width: 50px; height: 1px;
  background: var(--c-gold);
  margin: 0 auto 16px;
  opacity: .4;
}

.footer-copy {
  font-size: .75rem;
  color: var(--c-text3);
  line-height: 2;
}

.footer-copy a {
  color: var(--c-text2);
  transition: color var(--tr);
}

.footer-copy a:hover {
  color: var(--c-gold);
}

.footer-copy .footer-sep {
  opacity: .3;
  margin: 0 6px;
}

.entry-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 28px;
  color: var(--c-text2);
  line-height: 1.8;
}
.entry-content h1,
.entry-content h2,
.entry-content h3 { margin-bottom: 16px; }
.entry-content p   { margin-bottom: 16px; }

/* Strony prawne (regulamin, polityka) */
.legal-content .legal-entity {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 28px;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--c-text);
}
.legal-content .legal-entity .to-fill {
  border-bottom: 1px dashed var(--c-gold);
  color: var(--c-text2);
  font-style: italic;
}
.legal-entity-hint {
  color: var(--c-text3);
  font-size: 0.92em;
  font-style: normal;
  font-weight: 400;
}
.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  letter-spacing: .04em;
  color: var(--c-gold-l);
}
.legal-content h2:first-of-type { margin-top: 0.5rem; }
.legal-content .legal-intro {
  margin-bottom: 1.5rem;
  color: var(--c-text2);
  font-size: 1.02rem;
}
.legal-content ol,
.legal-content ul { margin: 0 0 1rem 0; padding-left: 1.35em; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content .legal-note {
  font-size: .9rem;
  color: var(--c-text3);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-border);
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; height: 58px; }
  .site-branding-logo { height: 40px; max-width: min(260px, 75vw); }
  .header-inner .custom-logo { height: 40px; max-width: min(260px, 75vw); }
  .site-branding-text { font-size: 1.2rem; max-width: min(260px, 75vw); }
  .site-hero--plain { min-height: 36vh; padding: 44px 0 56px; }
  .hero-inner { padding: 0 16px; }
  .container    { padding: 0 16px; }
  .site-info-section { padding: 32px 0; }
  .info-address-wrap { flex-direction: column; gap: 20px; }
  .info-address-photo { width: 100%; height: 200px; }
  .info-comment-box { padding: 18px 16px; }
}
