/* Pagina principală a site-ului (paunproperties.ro). Paleta și fonturile vin din /assets/css/tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--f-body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--peacock); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.eyebrow { font: 600 .78rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow--light { color: #e9c98a; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--peacock);
  background: var(--peacock); color: var(--on-accent); font: 650 .95rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--peacock-deep); border-color: var(--peacock-deep); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--ghost, .btn--line { background: transparent; color: var(--peacock); }
.btn--ghost:hover, .btn--line:hover { background: var(--surface-2); color: var(--peacock-deep); }
.btn--light { background: #f4e9d3; border-color: #f4e9d3; color: #073f44; }
.btn--light:hover { background: #fff; border-color: #fff; }

/* bara de sus */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--peacock); color: #f4e9d3; font: 700 1.3rem/1 var(--f-display); }
.logo__text { font-size: 1.02rem; letter-spacing: .02em; white-space: nowrap; }
.logo__text b { font-family: var(--f-display); letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--peacock); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 18px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 10px 4px; font-size: 1.05rem; }
  .nav .btn { margin-top: 6px; }
}

/* deschiderea */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--plume) 16%, transparent), transparent); pointer-events: none; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 em { font-style: italic; color: var(--peacock); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .93rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87724' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }
.hero__art { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .92; }
.ph { margin: 0; border-radius: 18px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ph:hover img { transform: scale(1.04); }
.ph--a { grid-row: 1 / 3; border-radius: 18px 18px 18px 120px; }
.ph--b { border-radius: 18px 90px 18px 18px; }
.hero__badge { position: absolute; left: -22px; bottom: 26px; background: var(--surface); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
  display: grid; gap: 2px; max-width: 240px; border-left: 4px solid var(--gold); }
.hero__badge b { font-family: var(--f-display); font-size: 1.1rem; }
.hero__badge span { font-size: .86rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 900px) {
  .hero { padding: 28px 0 48px; }
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .hero__badge { left: 12px; bottom: 12px; }
}

.band { background: var(--peacock-deep); color: #f4e9d3; }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; padding-top: 18px; padding-bottom: 18px;
  font: 500 1.15rem/1.2 var(--f-display); letter-spacing: .04em; }
.band i { width: 6px; height: 6px; border-radius: 50%; background: #d8a955; }
:root[data-theme="dark"] .band, .band { color: #f4e9d3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #0f2a2d; } }

/* secțiuni */
.sec { padding: 88px 0; }
.sec--tint { background: var(--surface-2); }
.sec--deep { background: #073f44; color: #e6efee; }
.sec--deep h2 { color: #fff; }
.sec__head { max-width: 720px; margin-bottom: 44px; }
.sec__head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.07rem; }
@media (max-width: 720px) { .sec { padding: 60px 0; } .sec__head { margin-bottom: 30px; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--peacock) 35%, var(--line)); }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.card__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--plume) 14%, transparent); margin-bottom: 18px; }
.card__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--peacock); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; background: var(--surface); border-radius: 16px; border: 1px solid var(--line); }
.steps span { display: block; font: 600 2.2rem/1 var(--f-display); color: var(--gold); margin-bottom: 14px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .96rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; margin-bottom: 26px; }
.tile { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.05); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; color: #fff; font-weight: 650; font-size: .95rem;
  background: linear-gradient(transparent, rgb(7 30 33 / .72)); }
.gallery.is-photos .tile:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } }
@media (max-width: 480px) { .gallery { grid-auto-rows: 150px; gap: 10px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--contact { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat li { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: 14px; padding: 20px; display: grid; gap: 6px; }
.feat b { font-family: var(--f-display); font-size: 1.15rem; color: #f4e9d3; }
.feat span { color: #b9cfcd; font-size: .93rem; line-height: 1.45; }
@media (max-width: 520px) { .feat { grid-template-columns: 1fr; } }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 1.12rem/1.35 var(--f-body); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--f-body); color: var(--peacock); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--ink-2); padding-right: 40px; }

.contact { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact li { display: grid; gap: 2px; }
.contact span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form small { font-weight: 400; color: var(--ink-3); }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--plume); outline-offset: 0; border-color: transparent; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form { padding: 20px; } .form__row { grid-template-columns: 1fr; } }
.form .check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; color: var(--ink-2); font-size: .88rem; gap: 10px; }
.form .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--peacock); }
.form .btn { justify-self: start; }
.form__msg { margin: 0; min-height: 1.4em; font-weight: 600; }
.form__msg.ok { color: var(--ok); } .form__msg.err { color: var(--bad); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0; color: var(--ink-2); font-size: .92rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot p { margin: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* asistentul virtual (chatbot) */
.bot__fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--peacock); color: var(--on-accent); font: 650 .95rem/1 var(--f-body); box-shadow: 0 8px 26px rgb(7 63 68 / .35); transition: transform .2s; }
.bot__fab:hover { transform: translateY(-2px); background: var(--peacock-deep); }
.bot__fab svg, .bot__form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bot.is-open .bot__fab { display: none; }
.bot__panel { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 41;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 32px)); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgb(16 38 43 / .28); overflow: hidden; }
.bot__panel[hidden] { display: none; }
.bot__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: #073f44; color: #f4e9d3; }
.bot__head div { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.bot__head b { font-family: var(--f-display); font-size: 1.05rem; }
.bot__head small { color: #b9cfcd; font-size: .8rem; }
.bot__x { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #f4e9d3; cursor: pointer; font-size: 1rem; }
.bot__x:hover { background: rgb(255 255 255 / .1); }
.bot__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.bot__msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.bot__msg p { margin: 0 0 6px; } .bot__msg p:last-child { margin: 0; }
.bot__msg ul { margin: 4px 0 6px; padding-left: 18px; }
.bot__msg--me { align-self: flex-end; background: var(--peacock); color: var(--on-accent); border-bottom-right-radius: 4px; }
.bot__msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bot__cta { margin-top: 8px; }
.bot__typing { display: flex; gap: 4px; padding: 12px 14px; }
.bot__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: botdot 1s infinite ease-in-out; }
.bot__typing i:nth-child(2) { animation-delay: .15s; } .bot__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes botdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .bot__typing i { animation: none; } }
.bot__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: var(--paper); }
.bot__chips:empty { display: none; }
.bot__chip { border: 1px solid color-mix(in srgb, var(--peacock) 40%, var(--line)); background: var(--surface); color: var(--peacock); border-radius: 999px;
  padding: 6px 12px; font: 550 .85rem/1.2 var(--f-body); cursor: pointer; text-align: left; }
.bot__chip:hover { background: var(--surface-2); }
.bot__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.bot__form textarea { flex: 1; min-width: 0; resize: none; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; max-height: 120px; }
.bot__form textarea:focus { outline: 2px solid var(--plume); border-color: transparent; }
.bot__form .btn { width: 44px; height: 44px; padding: 0; flex: none; }
.bot__foot { padding: 6px 12px 10px; font-size: .74rem; color: var(--ink-3); background: var(--surface); line-height: 1.4; }
.bot__reset { border: 0; background: none; color: var(--peacock); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; margin-left: 4px; }
@media (max-width: 480px) {
  .bot__panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .bot__fab span { display: none; } .bot__fab { padding: 14px; }
}
