@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --cw-font-body: "Manrope", "Segoe UI", sans-serif;
  --cw-font-display: "Space Grotesk", "Manrope", sans-serif;
  --cw-text: #1b2130;
  --cw-text-muted: #5a6476;
  --cw-surface: #ffffff;
  --cw-surface-muted: #f2f5fb;
  --cw-border: rgba(15, 23, 42, 0.12);
  --cw-accent: #f97316;
  --cw-accent-strong: #ea580c;
  --cw-link: #1d4ed8;
  --cw-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --cw-radius: 16px;
  --cw-container-max: 1120px;
  --cw-topbar-max: 1120px;
  --cw-container-gutter: 1.25rem;
  --cw-topbar-height: 120px;
  --cw-footer-bg: #1b1c1e;
  --cw-footer-border: rgba(255, 255, 255, 0.08);
  --cw-footer-text: rgba(255, 255, 255, 0.88);
  --cw-footer-muted: rgba(255, 255, 255, 0.55);
  --cw-footer-accent: rgba(191, 161, 129, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--cw-font-body);
  margin: 0;
  padding: 0;
  color: var(--cw-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 400px at 12% -10%, rgba(255, 231, 204, 0.8) 0%, rgba(255, 231, 204, 0) 70%),
    radial-gradient(900px 380px at 88% -20%, rgba(219, 234, 254, 0.9) 0%, rgba(219, 234, 254, 0) 65%),
    #f5f5f7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cw-link);
}

.container {
  --cw-container-pad-top: 1.5rem;
  width: min(var(--cw-container-max), 100% - (2 * var(--cw-container-gutter)));
  margin: 0 auto;
  padding: var(--cw-container-pad-top) var(--cw-container-gutter) 2.25rem;
  flex: 1 0 auto;
}

.container--narrow {
  --cw-container-max: 760px;
}

.container--medium {
  --cw-container-max: 920px;
}

.container--text {
  --cw-container-max: 840px;
}

.container--form {
  --cw-container-max: 640px;
}

.page-header {
  margin: 1rem 0 1.5rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.2;
}

.page-header p,
.page-header .lead {
  margin: 0 0 1.5rem;
  color: var(--cw-text-muted);
  line-height: 1.5;
}

.page-header > :last-child {
  margin-bottom: 0;
}

p.lead {
  margin: 0 0 1.5rem;
  color: var(--muted, var(--cw-text-muted));
  line-height: 1.5;
}

.topbar {
  display: block;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: calc(-1 * var(--cw-container-pad-top, 0rem));
  margin-bottom: 0;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0) 0%, rgba(249, 115, 22, 0.65) 35%, rgba(37, 99, 235, 0.55) 70%, rgba(37, 99, 235, 0) 100%);
}

.topbar-inner {
  max-width: var(--cw-topbar-max);
  margin: 0 auto;
  padding: 0.75rem var(--cw-container-gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  min-height: var(--cw-topbar-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--cw-text);
}

.brand-logo {
  width: clamp(120px, 18vw, 120px);
  height: 100px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-family: var(--cw-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--cw-accent-strong);
  font-weight: 700;
  margin-top: 0.25rem;
}

.burger {
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, #ffffff, #f4f7fb);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--cw-text);
}

.burger:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

.burger span {
  width: 20px;
  height: 2px;
  min-height: 2px;
  min-width: 20px;
  flex: 0 0 2px;
  background: currentColor;
  border-radius: 999px;
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.container .topbar .burger {
  color: var(--cw-text);
}

.container .topbar .burger span {
  background: currentColor;
  opacity: 1;
}

.topbar .burger span {
  opacity: 1;
}

.burger span + span {
  margin-top: 6px;
}

.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.lightbox-trigger {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1200;
}

.lightbox-overlay.is-hidden {
  display: none;
}

.lightbox-dialog {
  position: relative;
  max-width: min(960px, 92vw);
  max-height: 90vh;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

body.lightbox-open {
  overflow: hidden;
}

.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: nowrap;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-meta {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  position: relative;
  padding-bottom: 0.65rem;
  margin-bottom: 0.45rem;
}

.nav-meta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12) 0%, rgba(37, 99, 235, 0.35) 50%, rgba(249, 115, 22, 0.12) 100%);
  opacity: 0.85;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.nav-links {
  width: 100%;
  justify-content: flex-end;
  overflow-x: visible;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a,
.nav-actions a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cw-text);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-meta .nav-actions {
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
  font-size: 0.78rem;
  color: var(--cw-text-muted);
}

.nav-meta a {
  font-size: 0.78rem;
  color: var(--cw-text-muted);
  padding: 0.2rem 0.45rem;
}

.nav-meta a:hover {
  color: var(--cw-text);
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  background: rgba(249, 115, 22, 0.18);
  color: #7c2d12;
  border: 1px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.2);
}

.nav-links a:hover,
.nav-actions a:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--cw-text);
}

.user-link {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-weight: 600;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
}

.balance-chip a {
  color: var(--cw-text);
  text-decoration: none;
  font-weight: 600;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switcher select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.2rem 1.6rem 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.04);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--cw-text);
  cursor: pointer;
}

.language-switcher select:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.6);
  outline-offset: 2px;
}

.language-switcher--select::after {
  content: "▾";
  position: absolute;
  right: 0.7rem;
  color: var(--cw-text-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 3.5rem;
  padding: 2.75rem 1.5rem 1.5rem;
  color: var(--cw-footer-text);
  background: var(--cw-footer-bg);
  border-top: 1px solid var(--cw-footer-border);
}

.footer-inner {
  max-width: var(--cw-container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.brand-stack {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
}

.footer-description {
  margin: 0.75rem 0 0.25rem;
  color: var(--cw-footer-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-address {
  margin: 0;
  color: var(--cw-footer-muted);
  line-height: 1.5;
}

.footer-contact {
  display: grid;
  gap: 0.35rem;
}

.site-footer a {
  color: var(--cw-footer-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cw-footer-text);
}

.footer-links h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cw-footer-muted);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.footer-links li {
  color: var(--cw-footer-muted);
  line-height: 1.5;
}

.footer-meta {
  max-width: var(--cw-container-max);
  margin: 1.75rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--cw-footer-muted);
  font-size: 0.8rem;
}

.footer-hours {
  color: var(--cw-footer-muted);
  line-height: normal;
}

.footer-brand p {
  margin: 0.15rem 0;
}

@media (max-width: 960px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .burger {
    display: inline-flex;
  }

  .nav-menu {
    display: flex;
    position: absolute;
    left: var(--cw-container-gutter);
    right: var(--cw-container-gutter);
    top: calc(var(--cw-topbar-height) - 4px);
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 1rem;
    box-shadow: var(--cw-shadow);
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
    width: auto;
  }

  .topbar.nav-open .nav-menu {
    max-height: 80vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    overflow-x: visible;
  }

  .nav-meta {
    width: 100%;
    padding-bottom: 0.85rem;
    margin-bottom: 0.65rem;
  }
}

@media (max-width: 640px) {
  .brand-title {
    display: none;
  }

  .brand-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
  }

  .topbar-inner {
    padding: 0.6rem 1rem;
  }

  .container {
    --cw-container-pad-top: 1.25rem;
    padding: var(--cw-container-pad-top) 1rem 2rem;
  }
}

@media (max-width: 1200px) {
  .nav-links a {
    font-size: 0.85rem;
  }
}
