/* ============================================================
   Casa Seciu — QR landing pages
   Estetică: estate vinicol rafinat (crem · bordo · auriu)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  /* Paletă cramă */
  --wine:        #6b2a39;
  --wine-deep:   #4a1c28;
  --wine-soft:   #8a4254;
  --cream:       #faf6ef;
  --cream-2:     #f3ebdd;
  --cream-3:     #ece1cf;
  --gold:        #b08a56;
  --gold-soft:   #c9a877;
  --ink:         #2a2422;
  --muted:       #9a8c77;
  --line:        #e7ddcc;

  /* Tipografie */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', -apple-system, sans-serif;

  /* Ritm */
  --maxw: 540px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(120% 80% at 50% -10%, #fffdf8 0%, var(--cream) 42%, #f5efe4 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Textură fină de hârtie peste tot */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px calc(108px + env(safe-area-inset-bottom));
}

/* ---------- Tab bar (navigație tip aplicație) ---------- */
.tabbar {
  position: fixed;
  left: 14px; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  max-width: calc(var(--maxw) - 28px);
  margin: 0 auto;
  padding: 8px 6px;
  background: rgba(250, 246, 239, .82);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border: 1px solid rgba(231, 221, 204, .9);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(74, 28, 40, .15), 0 3px 10px rgba(0, 0, 0, .05);
}
.tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--muted);
  padding: 2px;
  transition: color .25s var(--ease);
}
.tab__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 30px;
  border-radius: 30px;
  transition: background .25s var(--ease);
}
.tab__ico svg { width: 22px; height: 22px; }
.tab__lbl {
  font-size: 10.5px;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tab.is-active { color: var(--wine); }
.tab.is-active .tab__ico { background: rgba(107, 42, 57, .1); }
.tab:not(.is-active):hover { color: var(--wine-soft); }

/* ---------- Bara de limbă ---------- */
.langbar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px 0 0;
}
.lang-btn {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .12em;
  padding: 5px 13px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.lang-btn:hover { border-color: var(--gold-soft); color: var(--wine); }
.lang-btn[aria-pressed="true"] {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}

/* ---------- Antet brand ---------- */
.brand {
  text-align: center;
  padding: 14px 0 26px;
}
.brand__logo { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.brand__logo.is-hero    { width: 189px; }
.brand__logo.is-wordmark { width: 230px; }

/* Fallback text dacă lipsește PNG-ul */
.brand__fallback { display: none; }
.brand__logo.is-missing { display: none; }
.brand__logo.is-missing + .brand__fallback {
  display: block;
  font-family: var(--serif);
  color: var(--wine);
  letter-spacing: .22em;
  font-size: 30px;
  line-height: 1.1;
}

/* ---------- Filet ornamental cu strugure ---------- */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px auto 4px;
  color: var(--gold);
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  width: 54px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.rule::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.rule svg { width: 16px; height: 16px; }

/* ---------- Titluri ---------- */
.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 11vw, 46px);
  line-height: 1.05;
  text-align: center;
  color: var(--ink);
  letter-spacing: .01em;
}
.page-sub {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Hub: carduri secțiuni ---------- */
.sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px 0 8px;
}
.section-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,.5);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.section-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}
.section-card[href]:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  background: rgba(255,255,255,.8);
}
.section-card[href]:hover::before { transform: scaleY(1); }

.section-card.is-soon {
  opacity: .6;
  cursor: default;
}

.section-card__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-3);
  color: var(--wine);
}
.section-card__icon svg { width: 22px; height: 22px; }

.section-card__body { flex: 1; min-width: 0; }
.section-card__title {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--wine);
}
.section-card__desc {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}
.section-card__arrow {
  flex: none;
  color: var(--gold);
  transition: transform .35s var(--ease);
}
.section-card[href]:hover .section-card__arrow { transform: translateX(4px); }

/* Badge de ofertă pe card */
.section-card.has-tag { border-color: var(--gold-soft); }
.section-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--wine-deep);
  background: rgba(201,168,119,.22);
  border: 1px solid rgba(176,138,86,.4);
  border-radius: 30px;
  padding: 5px 12px 5px 9px;
}
.section-card__tag svg { width: 14px; height: 14px; color: var(--gold); flex: none; }

.badge-soon {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 3px 10px;
}

/* ---------- Meniu (minibar) ---------- */
.menu { margin: 28px 0 0; }
.menu__cat {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin: 26px 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu__cat::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.menu__cat:first-child { margin-top: 4px; }

.item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: none; }
.item__name {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
}
.item__note {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
}
.item__dots {
  flex: 1;
  border-bottom: 1px dotted var(--cream-3);
  transform: translateY(-4px);
}
.item__price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--wine);
  white-space: nowrap;
}
.item__price small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 2px;
  letter-spacing: .08em;
}

/* ---------- Înapoi ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 16px 0 0;
  transition: color .3s var(--ease);
}
.back:hover { color: var(--wine); }
.back svg { width: 15px; height: 15px; }

/* ---------- Wi-Fi ---------- */
.cred {
  margin: 28px 0 6px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.cred__row {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cred__row + .cred__row { border-top: 1px solid var(--line); }
.cred__label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cred__value {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  color: var(--wine);
  line-height: 1.1;
  word-break: break-word;
}
.cred__value.is-mono {
  font-family: 'Jost', ui-monospace, monospace;
  font-size: 22px;
  letter-spacing: .04em;
  -webkit-user-select: all;
  user-select: all;
}
.cred__copy {
  align-self: flex-start;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cream);
  background: var(--wine);
  border: none;
  border-radius: 40px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.cred__copy:hover { background: var(--wine-deep); }
.cred__copy.is-done { background: var(--gold); }
.cred__copy svg { width: 15px; height: 15px; }

.wifi-connect {
  text-align: center;
  margin: 26px 0 4px;
}
.wifi-connect__hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.wifi-qr {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--cream-2);
  border-radius: 14px;
  padding: 16px;
  line-height: 0;
}
.wifi-qr svg { width: 160px; height: 160px; display: block; shape-rendering: crispEdges; }

/* ---------- Vinuri (Arhonte de Seciu) ---------- */
.legend {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
  color: var(--ink);
  margin: 24px 4px 6px;
}
.wines { margin: 18px 0 0; }
.wine {
  position: relative;
  background: rgba(255,255,255,.5);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.wine__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}
.wine__dot {
  flex: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  transform: translateY(1px);
}
.wine__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--wine);
  line-height: 1;
}
.wine__kind {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 0 21px;
}
.wine__symbol {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  margin: 10px 0 0 21px;
}
.wine__desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  margin: 8px 0 0 21px;
}

.availability {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 26px 6px 0;
}

.offer {
  background: var(--wine);
  color: var(--cream);
  border-radius: 18px;
  padding: 24px 22px;
  text-align: center;
  margin: 16px 0 6px;
  position: relative;
  overflow: hidden;
}
.offer::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201,168,119,.45);
  border-radius: 14px;
  pointer-events: none;
}
.offer__badge {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.offer__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.offer__detail {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(250,246,239,.82);
  margin-top: 12px;
}

/* ---------- Restaurant ---------- */
.order-card {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--wine);
  color: var(--cream);
  border-radius: 18px;
  padding: 30px 22px 26px;
  margin: 28px 0 14px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.order-card:hover { background: var(--wine-deep); transform: translateY(-2px); }
.order-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201,168,119,.4);
  border-radius: 14px;
  pointer-events: none;
}
.order-card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(201,168,119,.22);
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.order-card__icon svg { width: 24px; height: 24px; }
.order-card__label {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.order-card__phone {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin-top: 6px;
}
.order-card__hint {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(250,246,239,.8);
  margin-top: 12px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 6px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.menu-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  background: rgba(255,255,255,.85);
}
.menu-link__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-3);
  color: var(--wine);
}
.menu-link__icon svg { width: 22px; height: 22px; }
.menu-link__body { flex: 1; min-width: 0; }
.menu-link__label {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--wine);
  line-height: 1.1;
}
.menu-link__host {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.menu-link__ext { flex: none; color: var(--gold); }
.menu-link__ext svg { width: 19px; height: 19px; }

/* ---------- Footer ---------- */
.foot {
  text-align: center;
  padding: 34px 0 40px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.foot__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--wine);
}
.foot__small {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 5px;
}

/* ---------- Animații la încărcare ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: rise .7s var(--ease) forwards;
}
.reveal[style] { /* delay setat inline */ }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  * { transition: none !important; }
}

noscript .ns {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 30px 0;
}
