/*
Theme Name: La Popa's Kürtős & Lángoș
Theme URI: https://lapopas.ro
Author: HIT FM
Description: Temă one-page pentru La Popa's – kürtőskalács copt pe jar și lángoș făcut pe loc, Alba Iulia. Textele, telefonul, adresa, programul și link-urile se editează din Aspect → Personalizare → La Popa's.
Version: 1.0.0
Requires at least: 6.0
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: lapopas
*/

:root {
  --ember: #d9481c;
  --ember-dark: #a8330f;
  --honey: #e9a23b;
  --wood: #b5763a;
  --cream: #fbf3e4;
  --paper: #fffaf1;
  --char: #1d1714;
  --char-2: #2b221d;
  --ink: #2a211c;
  --muted: #6e5e52;
  --line: rgba(42, 33, 28, .12);
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(29, 23, 20, .45);
  --display: "Alfa Slab One", Georgia, serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember); }
a:hover { color: var(--ember-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .3px; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 14px; clip: auto; width: auto; height: auto; }

.eyebrow {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ember); margin-bottom: .9rem;
}
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: transform .15s, background .15s, color .15s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--char); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 241, .94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img, .brand .custom-logo { height: 54px; width: auto; }
.brand { display: flex; align-items: center; text-decoration: none; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.main-nav a:hover { color: var(--ember); }
.header-cta { padding: .6em 1.1em; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 26px; height: 3px; background: currentColor; margin: 5px 0; border-radius: 3px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .main-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero {
  position: relative; color: #fff; min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  background: var(--char) center/cover no-repeat;
  padding: 120px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,23,20,.15) 0%, rgba(29,23,20,.55) 45%, rgba(29,23,20,.92) 100%);
}
.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--honey); }
.hero h1 { max-width: 14ch; text-shadow: 0 3px 24px rgba(0,0,0,.4); }
.hero h1 em { font-style: normal; color: var(--honey); }
.hero p.lead { font-size: 1.18rem; max-width: 46ch; color: #f3e6d3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2rem; font-weight: 700; color: #f3e6d3; font-size: .95rem; }
.hero-badges span::before { content: "●"; color: var(--ember); margin-right: 8px; font-size: .7em; vertical-align: middle; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.center { text-align: center; margin-inline: auto; }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product-img { aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product-img img { transform: scale(1.04); }
.product-body { padding: 26px 28px 30px; }
.product-body p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1rem 0 0; }
.tags li { background: var(--cream); color: var(--ink); font-weight: 700; font-size: .88rem; padding: .35em .85em; border-radius: 999px; border: 1px solid var(--line); }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }

/* Fire band */
.fire { background: var(--char); color: #f3e6d3; }
.fire h2 { color: #fff; }
.fire .eyebrow { color: var(--honey); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.6rem 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.2rem 58px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ember); color: #fff; font-family: var(--display); display: grid; place-items: center;
}
.steps strong { color: #fff; display: block; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-img { order: -1; } }

/* Flavours */
.flavours { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.flavour {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  display: flex; gap: 14px; align-items: center; font-weight: 700;
}
.dot { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }

/* Reviews */
.rating-card {
  background: var(--cream); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.rating-score { text-align: center; }
.rating-score .num { font-family: var(--display); font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; color: var(--ember); }
.stars { color: var(--honey); font-size: 1.5rem; letter-spacing: 3px; }
.rating-score small { color: var(--muted); display: block; font-weight: 700; }
.praise { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.praise li { padding-left: 32px; position: relative; }
.praise li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--ember); width: 22px; height: 22px; border-radius: 50%; font-size: .8rem; display: grid; place-items: center; font-weight: 900; margin-top: 3px; }
@media (max-width: 680px) { .rating-card { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }

/* Where */
.where { background: var(--cream); }
.where-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.where-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.where-card img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.where-card .product-body h3 { margin-bottom: .35em; }
@media (max-width: 760px) { .where-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; color: var(--ember); }
.info-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.info-list a { color: var(--ink); text-decoration: none; font-weight: 700; }
.hours { white-space: pre-line; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; background: var(--char); color: #fff; display: grid; place-items: center; }
.socials a:hover { background: var(--ember); color: #fff; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--char); color: #cdbfae; padding: 56px 0 28px; font-size: .95rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-logo { background: var(--paper); border-radius: 14px; padding: 10px 16px; }
.footer-logo img { height: 64px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-footer a { color: #fff; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; gap: 10px; }
  .callbar a { flex: 1; justify-content: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); }
  .callbar .btn-dark { background: var(--char); color: #fff; }
  body.has-callbar { padding-bottom: 80px; }
}

/* Generic pages */
.page-content { padding: 64px 0 90px; }
.page-content .entry { max-width: 760px; }
.entry img { border-radius: 12px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 760px) {
  .hero { padding-top: 90px; min-height: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(29,23,20,.55) 0%, rgba(29,23,20,.78) 40%, rgba(29,23,20,.95) 100%); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
