/**
 * LCS — unified UI theme (forms, buttons, nav, footer)
 */

:root {
  --nav-h: 3.75rem;
  --field-h: 3rem;
  --shadow-brutal: 4px 4px 0 var(--black);
}

/* --- Buttons: connected bar, no gaps --- */
.btn-bar {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 0;
  margin-top: 1.5rem;
}

.btn-bar .btn {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  border-radius: 0;
  text-align: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  box-shadow: none;
  border: 2px solid var(--black);
}

.btn-bar .btn + .btn {
  margin-left: -2px;
}

.btn-bar .btn--outline {
  background: transparent;
  color: var(--black);
}

.btn-bar .btn:not(.btn--outline) {
  background: var(--black);
  color: var(--cream);
}

.btn-bar .btn:hover {
  z-index: 1;
  background: var(--gray);
  color: var(--cream);
}

.btn-bar .btn--outline:hover {
  background: var(--black);
  color: var(--cream);
}

/* Standalone buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  background: var(--black);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--black);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background var(--fill-duration, 0.22s) ease, color var(--fill-duration, 0.22s) ease;
  box-shadow: none;
}

.btn:hover,
.btn:active {
  transform: none;
  box-shadow: none;
}

.section--cream .btn:not(.btn--outline),
.modal__panel .btn:not(.btn--outline) {
  background: var(--black);
  color: var(--cream);
}

.section--cream .btn--outline,
.section--gray .btn--outline,
.modal__panel .btn--outline {
  background: transparent;
  color: var(--black);
  box-shadow: none;
}

.section--gray .btn:not(.btn--outline),
.section--dark .btn:not(.btn--outline) {
  background: var(--cream);
  color: var(--black);
  border-color: var(--cream);
  box-shadow: none;
}

.section--hero .btn--outline,
.section--dark .btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 32rem;
}

.hero-actions.btn-bar,
.hero-actions--connected {
  gap: 0;
}

.hero-actions.btn-bar .btn {
  flex: 1 1 auto;
}

/* --- Form fields --- */
.lcs-field {
  margin-top: 1.25rem;
}

.lcs-field__label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.lcs-field__hint {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0.35rem 0 0;
}

.lcs-input,
.lcs-textarea,
.wizard-step input[type="text"],
.wizard-step input[type="email"],
.wizard-step input[type="tel"],
.wizard-step input[type="date"],
.wizard-step textarea,
.chatbot__input input {
  width: 100%;
  min-height: var(--field-h);
  padding: 0.75rem 1rem;
  border: 2px solid var(--black);
  background: var(--cream);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lcs-input:focus,
.lcs-textarea:focus,
.wizard-step input:focus,
.wizard-step textarea:focus,
.chatbot__input input:focus {
  outline: none;
  border-color: var(--gray);
  box-shadow: inset 0 0 0 1px var(--gray);
}

.lcs-textarea,
.wizard-step textarea {
  min-height: 6rem;
  resize: vertical;
}

/* Native select hidden when enhanced */
select.lcs-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lcs-select-ui {
  position: relative;
  width: 100%;
}

.lcs-select-ui__trigger {
  width: 100%;
  min-height: var(--field-h);
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  border: 2px solid var(--black);
  background: var(--cream);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.lcs-select-ui__trigger .ti {
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease);
}

.lcs-select-ui.is-open .lcs-select-ui__trigger .ti-chevron-down {
  transform: rotate(180deg);
}

.lcs-select-ui__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 2px solid var(--black);
  border-top: 0;
  background: var(--cream);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: none;
}

.lcs-select-ui__menu[hidden] {
  display: none;
}

.lcs-select-ui__option {
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid rgba(2, 2, 2, 0.08);
}

.lcs-select-ui__option:hover,
.lcs-select-ui__option.is-selected {
  background: var(--black);
  color: var(--cream);
  transform: none;
}

/* Radio / checkbox */
.lcs-choice-row {
  display: flex;
  gap: 0;
  margin-top: 0.5rem;
}

.lcs-choice {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--field-h);
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--black);
  margin-left: -2px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--cream);
  transition: background 0.2s, color 0.2s;
}

.lcs-choice:first-child {
  margin-left: 0;
}

.lcs-choice__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.lcs-choice:has(.lcs-choice__input:checked) {
  background: var(--black);
  color: var(--cream);
  z-index: 1;
}

.lcs-choice__icon .ti {
  font-size: 1rem;
}

/* Wizard modal */
.modal {
  align-items: center;
  justify-content: center;
}

.modal__panel {
  border: 3px solid var(--black);
  box-shadow: 12px 12px 0 rgba(2, 2, 2, 0.35);
  width: min(520px, 100%);
}

.form-msg.is-error {
  color: #8b2e2e;
}

.wizard-progress {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.65;
  margin: 0 0 0.25rem;
}

.wizard-step__intro {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  opacity: 0.85;
}

.wizard-actions {
  gap: 0;
}

/* Date input webkit */
input[type="date"].lcs-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* --- Advanced footer --- */
.site-footer--advanced {
  padding: 0;
  border-top: 3px solid var(--cream);
  background: var(--black);
  color: var(--cream);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 4rem) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .site-footer__main {
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  }
}

.site-footer__heading {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cream);
}

.site-footer__tagline,
.site-footer__text {
  font-size: 0.9rem;
  color: rgba(235, 224, 211, 0.88);
  margin: 0 0 0.5rem;
  max-width: 28ch;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.site-footer__link:hover {
  text-decoration: underline;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__social {
  display: flex;
  gap: 0;
  margin-top: 1rem;
}

.site-footer__logo {
  display: block;
  width: min(140px, 42vw);
  height: auto;
  margin-bottom: 1rem;
}

.site-footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--cream);
  margin-left: -2px;
  text-decoration: none;
  color: var(--cream);
  transition: background var(--fill-duration, 0.22s) ease, color var(--fill-duration, 0.22s) ease;
}

.site-footer__social a .ti {
  font-size: 1.25rem;
  line-height: 1;
}

.site-footer__social a:first-child {
  margin-left: 0;
}

.site-footer__social a:hover {
  background: var(--cream);
  color: var(--black);
}

.newsletter-form__row {
  display: flex;
  gap: 0;
  margin-top: 0.75rem;
}

.site-footer--advanced .newsletter-form__row .lcs-input {
  flex: 1;
  min-width: 0;
  border-right: 0;
  background: var(--black);
  color: var(--cream);
  border-color: var(--cream);
}

.site-footer--advanced .newsletter-form__row .lcs-input::placeholder {
  color: rgba(235, 224, 211, 0.5);
}

.site-footer--advanced .newsletter-form__row .lcs-input:focus {
  border-color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(235, 224, 211, 0.35);
}

.site-footer--advanced .newsletter-form__row .btn {
  flex-shrink: 0;
  box-shadow: none;
  border-radius: 0;
  background: var(--cream);
  color: var(--black);
  border: 2px solid var(--cream);
  min-width: 3rem;
  transform: none;
}

.site-footer--advanced .newsletter-form__row .btn:hover {
  background: var(--gray);
  color: var(--cream);
  transform: none;
  z-index: 1;
}

.newsletter-form__row .lcs-input {
  flex: 1;
  min-width: 0;
  border-right: 0;
}

.newsletter-form__row .btn {
  flex-shrink: 0;
  box-shadow: none;
  border-radius: 0;
}

.newsletter-form__msg {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.newsletter-form__msg.is-error {
  color: #e8a090;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid rgba(235, 224, 211, 0.2);
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.site-footer__copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0.25rem 0;
}

.site-footer__wordmark {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(6rem, 14vw, 9rem);
  overflow: hidden;
  border-top: 3px solid var(--cream);
  margin-top: 1.5rem;
}

.site-footer__wordmark span {
  display: block;
  font-size: clamp(1.5rem, 6.8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  color: var(--cream);
  opacity: 0.95;
  width: 100%;
  max-width: 100%;
}

/* Flat contact (no cards) */
.contact-panel {
  margin-top: 2rem;
}

.contact-panel__actions.btn-bar {
  max-width: 100%;
}

.contact-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1.5rem;
  max-width: 28rem;
}

.contact-panel__chip {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--black);
  margin-left: -2px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-panel__chip:first-child {
  margin-left: 0;
}

.section--cream .contact-panel__chip:hover {
  background: var(--black);
  color: var(--cream);
}
