/* Shared Liberterra presentation layer. No access, data or form behavior. */
html { zoom: 1; }
:root, body {
  --bg: #f7f7f5; --card: #fff; --ink: #252525; --muted: #707070;
  --red: #e52732; --red-hover: #c91f29; --red-soft: #f7e9ec;
  --red-line: #e7c6ce; --line: #e8e8e5; --line-strong: #dcd8d5;
  --radius: 14px; --shadow: 0 4px 20px rgb(0 0 0 / 6%);
}
body { background: var(--bg); color: var(--ink); font-family: "Golos Text", system-ui, sans-serif; line-height: 1.5; }
body :is(button, input, select, textarea) { font-family: inherit; }
body .wrap { width: min(1280px, calc(100% - 64px)); }
body :is(h1,h2,h3) { font-family: "Manrope", system-ui, sans-serif; line-height: 1.25; }
body main h1 { font-size: clamp(28px, 3.1vw, 43px); letter-spacing: -.8px; }
body main h2 { font-size: clamp(23px, 2.3vw, 28px); letter-spacing: -.4px; }
body :is(.site-header,.crm-header,.nb-header) {
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: none;
}
body :is(.header-inner,.crm-header-inner) {
  min-height: 86px; display: flex; align-items: center; gap: 20px;
  padding-block: 12px; flex-wrap: wrap;
}
body :is(.site-header,.crm-header) .brand { flex: 0 0 auto; min-width: 0; width: auto; }
body :is(.site-header,.crm-header) .brand-logo { width: 190px; height: auto; max-height: 52px; object-fit: contain; filter: none; }
body :is(.site-header,.crm-header) .header-controls { margin-left: auto; gap: 14px; }
body :is(.header-action,.crm-catalog-link,.submission-back) {
  background: #fff; color: #a82b36; border: 1px solid #e8d6d8;
  border-radius: 10px; padding: 10px 16px; min-height: 44px;
  font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: none;
}
body .header-profile { background: transparent; border: 0; color: var(--ink); font-size: 14px; box-shadow: none; }
body .language-switcher { background: #fff; border: 0; box-shadow: none; padding: 0; gap: 0; }
body .language-switcher button { min-width: 32px; min-height: 36px; padding: 6px; font-size: 12px; }
body .language-switcher button.is-active { background: #fff3f5; color: #a82b36; }
body :is(.submission-form,.crm-panel,.profile-card,.agent-card,.nb-project,.modal-panel,.crm-dialog) {
  background: #fff; border-color: var(--line); border-radius: 14px; box-shadow: none;
}
body :is(.submission-form,.crm-field,.agent-directory-filters,.viewing-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) {
  background: #fafafa; color: var(--ink); border: 1px solid var(--line);
  border-radius: 9px; padding: 12px; font-size: 15px; min-height: 44px;
}
body :is(.request-create-action,.submission-submit,.crm-primary-link) {
  background: var(--red); color: #fff; border: 1px solid var(--red);
  border-radius: 10px; min-height: 44px; box-shadow: none;
}
body :is(.request-create-action,.submission-submit,.crm-primary-link):hover { background: var(--red-hover); }
body .filters { background: transparent; border-color: var(--line); }
body .chip { border-radius: 9px; background: #fff; border-color: var(--line); font-size: 14px; }
body .chip.is-active { background: #fff; color: #c91f29; border-color: #e7c6ce; box-shadow: inset 0 -3px #e52732; }
body :is(.request-jump,.request-view-action) { border-radius: 10px; box-shadow: none; }
body :is(.requests-grid,.agent-directory-grid) { gap: 22px; }
body .request-card { background: #fff; border-color: var(--line); border-radius: 14px; box-shadow: none; }
body .request-card .card-body { padding: 16px; }
body .request-card .title { font-size: 18px; }
body .request-card .price { font-size: 24px; }
body :is(.card-action[href^="https://wa.me/"],.button.whatsapp) { color: #187544; background: #f2f8f4; border-color: #c8dfcf; }
body :is(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #b83246; outline-offset: 3px; }
body :is(button,input,select,textarea):disabled { cursor: not-allowed; opacity: .6; }
/* The project pages have their own layout, but share the brand treatment. */
body .nb-hero { background: linear-gradient(115deg,#4b1a27,#602534 62%,#541d2b); border-radius: 22px; }
body .nb-header { font-family: inherit; gap: 16px; flex-wrap: wrap; }
body .nb-header > a { font-size: 16px; }
body .nb-header > a:first-child { font-size: 28px; }
body .submission-page-nav { padding-block: 18px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  body :is(.header-inner,.crm-header-inner) { gap: 10px; }
  body :is(.site-header,.crm-header) .brand-logo { width: 154px; }
  body :is(.site-header,.crm-header) .header-controls { gap: 8px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  body .wrap { width: calc(100% - 32px); }
  body :is(.header-inner,.crm-header-inner) { min-height: 70px; padding-block: 10px; }
  body :is(.site-header,.crm-header) .brand-logo { width: 133px; max-height: 40px; }
  body .language-switcher button { min-width: 29px; padding: 4px; font-size: 11px; }
  body :is(.header-action,.crm-catalog-link,.submission-back) { padding: 8px 10px; font-size: 12px; }
  body :is(.requests-grid,.agent-directory-grid) { gap: 16px; }
  body .app-bottom-nav { border-radius: 16px 16px 0 0; bottom: 0; left: 0; right: 0; width: 100%; padding-bottom: max(8px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body .lt-header { background: #fff; border-bottom: 1px solid var(--line); }
body .lt-header-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-height: 86px; }
body .lt-header-row > .brand { flex: 0 0 auto; }
body .lt-header-row .brand-logo { width: 190px; height: auto; max-height: 52px; }
body .lt-navigation { display: flex; gap: 20px; align-items: center; margin-right: auto; }
body .lt-navigation a { font-size: 14px; font-weight: 500; color: #525252; text-decoration: none; }
body .lt-navigation a[aria-current] { color: #a82b36; text-decoration: underline; text-underline-offset: 8px; }
body .lt-header-row > .language-switcher { margin-left: auto; }
body .lt-header-row > nav:has([data-lang]) { display: flex; gap: 0; }
body .lt-header-row [data-lang] { border: 0; background: #fff; color: #707070; min-height: 36px; padding: 6px; border-radius: 9px; font-size: 12px; }
body .lt-header-row [data-lang][aria-pressed=true] { background: #fff3f5; color: #a82b36; }
@media (max-width: 1120px) {
  body .lt-navigation { gap: 12px; }
  body .lt-header-row .brand-logo { width: 154px; }
}
@media (max-width: 900px) {
  body .lt-navigation { order: 10; flex-basis: 100%; border-top: 1px solid var(--line); padding-block: 8px; }
}
@media (max-width: 600px) {
  body .lt-header-row { min-height: 70px; gap: 8px; }
  body .lt-header-row .brand-logo { width: 133px; max-height: 40px; }
  body .lt-navigation { justify-content: space-between; }
  body .lt-navigation a { font-size: 13px; }
  body:not(.home-redesign) .lt-header-row > .brand { order: 0; }
  body:not(.home-redesign) .lt-header-row > .language-switcher { order: 1; margin-left: auto; }
  body:not(.home-redesign) .lt-header-row > .header-controls { order: 2; flex: 1 1 100%; width: 100%; justify-content: flex-end; }
  body:not(.home-redesign) .lt-header-row > .lt-navigation { order: 3; }
}
