/* Components rendered from the admin: banner, pop-up, forms, newsletter, opening hours */

/* ---- Announcement banner ---- */
.banner { position: fixed; top: 0; left: 0; right: 0; z-index: 101; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 40px; padding: 9px 52px; font-size: 12.5px; letter-spacing: 0.08em; text-align: center; transition: transform 0.6s var(--ease); }
.banner p { margin: 0; }
.banner a { margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.banner button { position: absolute; right: 8px; top: 50%; width: 36px; height: 36px; margin-top: -18px; }
.banner button::before, .banner button::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: currentColor; }
.banner button::before { transform: rotate(45deg); }
.banner button::after { transform: rotate(-45deg); }
.banner--sand { background: var(--sand); color: var(--espresso-deep); }
.banner--wine { background: var(--wine); color: var(--cream); }
.banner--dark { background: var(--ink); color: var(--sand); }
.has-banner .header { top: var(--banner-h, 0px); }
.has-banner .progress { top: var(--banner-h, 0px); }
.header-hidden .banner { transform: translateY(-100%); }
html:not(.is-loaded) .banner { opacity: 0; }

/* ---- Pop-up ---- */
.popup { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 20px; visibility: hidden; transition: visibility 0s 0.6s; }
.popup.is-open { visibility: visible; transition: none; }
.popup__scrim { position: absolute; inset: 0; background: rgba(30, 21, 17, 0.62); opacity: 0; transition: opacity 0.6s var(--ease); }
.popup.is-open .popup__scrim { opacity: 1; }
.popup__card { position: relative; display: grid; width: min(460px, 100%); max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); overflow: auto; background: var(--paper); color: var(--espresso); opacity: 0; transform: translateY(28px); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
.popup--image .popup__card { width: min(820px, 100%); grid-template-columns: 0.9fr 1fr; }
.popup.is-open .popup__card { opacity: 1; transform: none; }
.popup__media { position: relative; min-height: 320px; overflow: hidden; }
.popup__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.popup.is-open .popup__media img { transform: none; }
.popup__body { position: relative; display: grid; align-content: center; justify-items: start; gap: 18px; padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px); }
.popup__title { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; margin: 0; padding-right: 28px; }
.popup__title em { color: var(--wine); }
.popup__text { margin: 0; color: var(--cocoa); line-height: 1.7; }
.popup__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; transition: transform 0.6s var(--ease), background 0.4s; }
.popup__close:hover { transform: rotate(90deg); background: var(--cream); }
.popup__close::before, .popup__close::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: currentColor; }
.popup__close::before { transform: rotate(45deg); }
.popup__close::after { transform: rotate(-45deg); }
.popup .newsletter__form { width: 100%; --nl-ink: var(--espresso); --nl-line: var(--line); --nl-soft: var(--cocoa); }

/* ---- Forms ---- */
.form { display: grid; gap: 30px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide, .field--check { grid-column: 1 / -1; }
.field label { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cocoa); }
.field label i { font-style: normal; letter-spacing: 0.08em; text-transform: none; opacity: 0.6; margin-left: 6px; }
.field input:not([type="checkbox"]), .field textarea, .field select { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font: inherit; font-size: 17px; color: var(--espresso-deep); transition: border-color 0.4s; -webkit-appearance: none; appearance: none; }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23694d3f'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--espresso); box-shadow: 0 1px 0 var(--espresso); }
.field--check { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--espresso); margin: 0; }
.field--check label { font-size: 14px; letter-spacing: 0; text-transform: none; }
.field__error { display: none; margin: 0; font-size: 12.5px; color: var(--wine); }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-bottom-color: var(--wine); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { margin: 0; font-size: 14px; color: var(--wine); }
.form.is-sending, .newsletter__form.is-sending { opacity: 0.6; pointer-events: none; }
.form__done { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; animation: cms-rise 0.9s var(--ease) both; }
@keyframes cms-rise { from { opacity: 0; transform: translateY(14px); } }

/* ---- Newsletter (footer is dark; the pop-up overrides the variables) ---- */
.newsletter { padding-inline: var(--pad); }
.newsletter__form { --nl-ink: var(--cream); --nl-line: var(--line-light); --nl-soft: var(--sand-soft); display: grid; gap: 12px; max-width: 520px; color: var(--nl-ink); }
.newsletter__label { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); }
.newsletter__row { display: flex; border-bottom: 1px solid var(--nl-line); transition: border-color 0.4s; }
.newsletter__row:focus-within { border-bottom-color: var(--nl-ink); }
.newsletter__row input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: inherit; }
.newsletter__row input::placeholder { color: var(--nl-soft); opacity: 0.8; }
.newsletter__row input:focus { outline: none; }
.newsletter__row button { padding: 0 4px 0 18px; font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: inherit; transition: letter-spacing 0.5s var(--ease); }
.newsletter__row button:hover { letter-spacing: 0.34em; }
.newsletter__small { margin: 0; font-size: 12px; color: var(--nl-soft); }
.newsletter__small a { text-decoration: underline; text-underline-offset: 3px; }
.newsletter__form .form__status { color: var(--ember); }
.newsletter__form .form__status:empty { display: none; }

/* ---- Opening hours ---- */
.hours { margin: 26px 0; }
.hours__title { font-size: 10.5px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cocoa); margin: 0 0 12px; }
.hours dl { margin: 0; display: grid; gap: 6px; max-width: 340px; }
.hours dl div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.hours dt, .hours dd { margin: 0; }
.hours dd { font-family: var(--serif); font-size: 18px; }

@media (max-width: 820px) {
  .popup--image .popup__card { grid-template-columns: 1fr; }
  .popup__media { min-height: 0; height: 200px; }
}
@media (max-width: 520px) {
  .form__grid { grid-template-columns: 1fr; }
  .banner { padding: 8px 44px 8px 14px; font-size: 12px; text-align: left; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .popup__card, html:not(.force-motion) .popup__scrim, html:not(.force-motion) .popup__media img, html:not(.force-motion) .banner { transition: none; }
  html:not(.force-motion) .form__done { animation: none; }
}
