/* Petreceri Copii București: one stylesheet for the whole site. No framework, no web fonts. */

:root {
  --brand: #5b2bbf;
  --brand-dark: #43209a;
  --brand-soft: #efe8ff;
  --accent: #ff7a1a;
  --accent-dark: #e0620a;
  --accent-soft: #fff1e5;
  --teal: #12a594;
  --ink: #221a3d;
  --muted: #5e5878;
  --bg: #fbfaff;
  --white: #fff;
  --line: #e7e2f5;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(34, 26, 61, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Trebuchet MS", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p, ul, ol, dl, table { margin: 0 0 1em; }
code { background: var(--accent-soft); padding: .1em .35em; border-radius: 6px; font-size: .9em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.small { font-size: .875rem; color: var(--muted); }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: .5rem 1rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7em 1.4em;
  background: var(--brand); color: var(--white);
  border: 2px solid var(--brand); border-radius: 10px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); transform: translateY(-1px); }
.btn-alt { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-alt:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--brand-dark); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-small { min-height: 40px; padding: .4em 1em; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-size: 1.35rem; font-weight: 800; }
.logo b, .footer-brand b { color: var(--brand); }
.logo-img { width: auto; height: 52px; }
@media (max-width: 760px) { .logo-img { height: 42px; } }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.menu a { display: block; padding: .6rem .8rem; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.menu a:hover, .menu a[aria-current] { color: var(--brand); border-bottom-color: var(--accent); }

/* on narrow screens the menu becomes a second row that scrolls sideways: no JavaScript needed */
@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: 0 1rem; padding-top: .5rem; }
  .header-call { margin-left: auto; }
  .menu { order: 3; flex-basis: 100%; margin: 0 -16px; overflow-x: auto; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu ul { padding: .25rem 16px .5rem; }
}

.draft-banner { background: var(--accent); color: var(--ink); text-align: center; padding: .5rem 16px; font-weight: 700; }

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; padding: 0; margin: 1rem auto 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .25rem; }
.crumbs a { color: var(--muted); }

/* hero and page heads */
.hero { padding: 3rem 0 2rem; position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero p.lead, .page-head p.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.eyebrow { display: inline-block; background: rgba(255, 255, 255, .16); color: var(--white); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; font-size: .9rem; padding: .25em .8em; border-radius: 999px; margin-bottom: 1rem; }
.hero-art { width: 100%; max-width: 420px; margin-inline: auto; }
@media (max-width: 859px) { .hero-art { display: none; } .hero { padding-top: 1.5rem; } }
.page-head { padding: 1.5rem 0 1rem; }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; width: 100%; }

.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1.5rem 0 0; color: var(--muted); font-weight: 600; }
.trust li::before { content: "✓"; color: var(--brand); margin-right: .4rem; font-weight: 800; }

/* sections */
section { margin-bottom: 2.5rem; }
.band { background: var(--white); border-block: 1px solid var(--line); padding: 2.5rem 0; }
.prose > * { max-width: 760px; }
.prose ul { padding-left: 1.25rem; }

/* cards */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); list-style: none; padding: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; width: 100%; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; width: 100%; border-radius: var(--radius); }
.card-title { font-weight: 800; font-size: 1.1rem; line-height: 1.3; margin: 0; padding: .9rem 1rem .2rem; }
.card-meta, .card p { color: var(--muted); padding: 0 1rem 1rem; margin: 0; font-size: .95rem; }
.card-icon { font-size: 2rem; padding: 1rem 1rem 0; }
.characters .card-title { padding-bottom: .9rem; }
.characters .card-meta { margin-top: -.6rem; }

/* facts and prices */
.facts { display: flex; flex-wrap: wrap; gap: .75rem; }
.facts div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .6rem 1rem; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table caption { text-align: left; font-weight: 800; font-size: 1.2rem; padding: 0 0 .5rem; }
.price-table th, .price-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--brand-soft); font-size: .9rem; }
.price-table td.num, .price-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; }
@media (max-width: 559px) { .price-table th, .price-table td { padding: .7rem .5rem; font-size: .95rem; } .price-table th[scope=row] { white-space: nowrap; } }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.pill-list a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .4rem 1rem; text-decoration: none; font-weight: 600; }

/* call-to-action band */
.cta { background: var(--brand); color: var(--white); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1rem; align-items: center; }
@media (min-width: 760px) { .cta { grid-template-columns: 1fr auto; } }
.cta h2 { margin: 0; }
.cta p { margin: 0; opacity: .92; }
.cta .btn { background: var(--white); color: var(--brand-dark); border-color: var(--white); }
.cta .btn-alt { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* forms */
.form { display: grid; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); max-width: 640px; }
.form label { display: grid; gap: .3rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; padding: .75rem .9rem; border: 1.5px solid #d9d2ec; border-radius: 10px; background: var(--bg); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { background: var(--ink); color: #d9dbe7; padding: 3rem 0 6rem; margin-top: 3rem; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer .small { color: #a8abc0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } .site-footer { padding-bottom: 3rem; } }
.footer-brand { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.footer-title { font-weight: 800; color: var(--white); }

/* bottom menu on phones and small tablets: always visible while scrolling */
.tabbar { display: none; }
@media (max-width: 759px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    padding: .35rem 8px calc(.35rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(34, 26, 61, .06);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-height: 52px; justify-content: center; border-radius: 12px;
    color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 700;
  }
  .tabbar svg { width: 24px; height: 24px; fill: currentColor; }
  .tabbar a[aria-current] { color: var(--brand-dark); background: var(--brand-soft); }
  .tabbar .tab-call { color: var(--white); background: var(--brand); margin: 2px 4px; }
  .header-call { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* blog */
.post-date { color: var(--muted); font-size: .95rem; margin-top: -.5rem; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.post-list a { font-weight: 700; }
.post-list time { color: var(--muted); font-size: .9rem; white-space: nowrap; }
article.prose { margin-bottom: 2.5rem; padding-top: 1.5rem; }

/* face painting: square photo, portrait gallery, quotes */
.photo-face img { aspect-ratio: 1 / 1; object-position: center 45%; max-width: 520px; margin-inline: auto; display: block; }
.gallery-tall img { aspect-ratio: 3 / 4; object-position: center; }
.prose blockquote { margin: 1rem 0; padding: 1rem 1.25rem; background: var(--white); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { margin: 0 0 .5rem; }
.prose blockquote footer { font-size: .9rem; color: var(--muted); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; max-width: 440px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 45%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; margin-inline: auto; }
@media (max-width: 859px) { .hero-photo img { max-width: 260px; } }
.feature { padding: 2rem 0; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem; margin: .5rem 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq summary h3 { display: inline; font-size: inherit; font-weight: inherit; margin: 0; }
.faq details p { margin: .5rem 0 0; }

/* photos inside text pages */
.prose figure { margin: 1.5rem 0; }
.prose figure img { width: auto; max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; }

/* contact: green "Online" status, form messages */
.online { display: inline-flex; align-items: center; gap: .4rem; color: #1f7a3a; }
.online::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #2fb855; box-shadow: 0 0 0 3px #d3f2dc; }
.form-msg { margin: 0; padding: .7rem 1rem; border-radius: 10px; background: #fde8ec; color: #8a1230; font-weight: 600; }

/* photo galleries built from [[foto ...]] (petreceri-copii-bucuresti.ro) */
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; line-height: 1.35; }
.prose .gallery { margin-block: 1.25rem 2rem; }

/* Petreceri Copii București theme: violet hero band with confetti, orange accents, teal details */
.topbar { background: var(--brand-dark); color: #e3dbff; font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .35rem 0; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }
@media (max-width: 759px) { .topbar { display: none; } }
.site-header { box-shadow: 0 2px 12px rgba(34, 26, 61, .05); }
.hero {
  padding: 3.5rem 0 3rem; color: var(--white);
  background:
    radial-gradient(circle at 3% 12%, rgba(255, 122, 26, .9) 0 6px, transparent 7px),
    radial-gradient(circle at 92% 30%, rgba(18, 165, 148, .9) 0 8px, transparent 9px),
    radial-gradient(circle at 80% 85%, rgba(255, 255, 255, .5) 0 5px, transparent 6px),
    radial-gradient(circle at 20% 90%, rgba(255, 201, 60, .9) 0 5px, transparent 6px),
    radial-gradient(circle at 55% 12%, rgba(255, 255, 255, .35) 0 4px, transparent 5px),
    linear-gradient(135deg, var(--brand) 0%, #7a3fd6 60%, #9a4fd0 100%);
}
.hero h1 { color: var(--white); max-width: 18em; }
.hero p.lead { color: #efe9ff; }
.hero .btn { background: var(--accent); border-color: var(--accent); }
.hero .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.hero .btn-alt { background: var(--white); border-color: var(--white); color: var(--brand-dark); }
.hero .btn-alt:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-dark); }
.page-head { background: linear-gradient(180deg, var(--brand-soft), rgba(239, 232, 255, 0)); border-radius: var(--radius); padding: 1.75rem clamp(1rem, 3vw, 2rem) 1.25rem; margin-top: .75rem; }
.page-head h1 { color: var(--brand-dark); }
.prose h2, section > h2 { position: relative; padding-left: .9rem; }
.prose h2::before, section > h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 3px; background: var(--accent); }
.prose h3 { color: var(--brand-dark); }
.trust li::before { color: var(--teal); }
.prose blockquote { border-left-color: var(--teal); }
.price-table thead th { background: var(--brand); color: var(--white); }
.cta { background: linear-gradient(135deg, var(--brand), #7a3fd6); }
.site-footer { background: #1d1534; border-top: 6px solid var(--accent); }
.footer-logo { display: inline-block; background: var(--white); border-radius: 10px; padding: .4rem .6rem; }
.footer-logo img { height: 44px; width: auto; }
.tabbar .tab-call { background: var(--accent); }
.hero .wrap { display: block; }
.hero .wrap > * { max-width: 780px; }
.hero .eyebrow { max-width: none; }
