:root {
  --blue: #17396f;
  --ink: #132a4c;
  --orange: #f47920;
  --border: #dce4ed;
  --muted: #4b5e76;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: #f7f9fc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--blue); text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2666b5; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.masthead, .brand, .masthead nav, .actions, .section-title, .footer {
  display: flex;
  align-items: center;
}
.masthead { min-height: 90px; justify-content: space-between; gap: 16px; }
.brand { gap: 12px; }
.brand img { border-radius: 10px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.25rem; letter-spacing: -.035em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.masthead nav { gap: 24px; font-size: .9rem; font-weight: 650; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 750;
}
.primary { background: var(--orange); color: #1c240f; border: 0; }
.primary:hover { background: #ff923d; }
.outline { border-color: var(--border); background: #fff; }
.outline:hover { border-color: var(--blue); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}
.hero-copy { align-self: center; padding: clamp(28px, 5vw, 68px); }
.label { color: var(--blue); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
h1 { margin-block: 14px 18px; font-size: clamp(2.2rem, 5.4vw, 5.1rem); line-height: .97; letter-spacing: -.079em; }
h1 span { color: var(--orange); }
.intro { max-width: 39ch; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.actions { flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.featured {
  min-width: 0;
  align-self: stretch;
  display: grid;
  align-content: center;
  padding: clamp(18px, 4vw, 40px);
  background: #f4f0e9;
}
.featured h2 { font-size: .9rem; margin-bottom: 12px; }
.featured-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.featured-track::-webkit-scrollbar { display: none; }
.featured-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.featured-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: 16px; border-radius: 14px; background: white; }
.featured-slide img { -webkit-user-drag: none; display: block; width: 100%; height: clamp(145px, 26vw, 245px); object-fit: contain; }
.featured-slide h3 { margin-top: 12px; font-size: 1.16rem; }
.featured-slide p { margin-block: 5px 10px; color: var(--muted); font-size: .84rem; }
.featured-slide a { font-size: .85rem; font-weight: 750; }
.featured-controls { display: flex; justify-content: end; align-items: center; gap: 10px; margin-top: 12px; }
.featured-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  font-weight: 750;
}
.featured-controls button:hover { border-color: var(--blue); }
.featured-position { color: var(--muted); font-size: .8rem; }
.categories { padding-block: 47px; }
.section-title { justify-content: space-between; gap: 12px; margin-bottom: 16px; }
h2 { letter-spacing: -.035em; font-size: clamp(1.35rem, 3vw, 2.1rem); }
.section-title a { font-size: .83rem; font-weight: 750; }
.section-title a:hover, .visit a:hover, .footer a:hover { text-decoration: underline; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.category:hover { border-color: var(--blue); }
.category img { display: block; width: 100%; height: 132px; object-fit: contain; padding: 15px; }
.category > div { position: relative; min-height: 78px; padding: 12px 32px 12px 15px; border-top: 1px solid var(--border); }
.category h3 { font-size: 1rem; }
.category p { color: var(--muted); margin-top: 4px; font-size: .78rem; }
.category span { position: absolute; top: 12px; right: 13px; }
.visit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 25px; border-radius: 12px; background: var(--blue); color: white; }
.visit h2 { font-size: 1.4rem; }
.visit address, .visit p { margin-top: 6px; font-style: normal; line-height: 1.55; }
.visit a { display: inline-block; margin-top: 8px; color: #ffbd8d; font-weight: 700; }
.footer { flex-wrap: wrap; gap: 16px; padding-block: 24px 85px; font-size: .85rem; }
.carpi-launch, .chat { position: fixed; z-index: 3; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
.carpi-launch {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 5px 8px 7px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 750;
  font-size: .74rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 5;
}
.carpi-launch.is-dragging { cursor: grabbing; }
.carpi-orb {
  position: relative;
  width: 104px;
  height: 104px;
  pointer-events: none;
  display: none;
}
.carpi-orb:has(canvas.is-visible) { display: block; }
.carpi-orb canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carpi-orb canvas { opacity: 0; }
.carpi-orb canvas.is-visible { opacity: 1; }
.carpi-orb canvas { filter: drop-shadow(0 4px 5px #182b4733); }
.carpi-launch-label { pointer-events: none; text-shadow: 0 0 4px white, 0 0 2px white; }
.chat {
  bottom: max(153px, calc(env(safe-area-inset-bottom) + 147px));
  z-index: 6;
  display: flex;
  flex-direction: column;
  width: min(370px, calc(100% - 28px));
  max-height: calc(100dvh - 167px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 42px #132a4c33;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; background: var(--blue); color: #fff; padding: 13px 15px; }
.chat-head h2 { font-size: 1.24rem; }
.chat-head button { width: 44px; height: 44px; border: 1px solid #ffffff66; background: transparent; color: white; border-radius: 8px; font-size: 1.4rem; }
.chat-head button:focus-visible { outline-color: white; }
.chat-feed { display: flex; flex-direction: column; min-height: 0; height: 230px; overflow: auto; padding: 14px; gap: 9px; background: #f7f9fc; }
.bubble { align-self: flex-start; max-width: 100%; padding: 9px 11px; border-radius: 9px; background: #e8eef8; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.user { align-self: flex-end; background: #ffe7d3; }
.bubble audio { margin-top: 8px; width: 100%; min-width: 180px; display: block; }
.chat-prompts { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 12px 0; }
.chat-prompts button { background: white; color: var(--blue); border: 1px solid var(--border); border-radius: 5px; min-height: 34px; font-size: .76rem; }
.chat-form { display: flex; padding: 10px 12px; gap: 7px; }
.chat-form input { flex: 1; min-width: 0; border: 1px solid #aab9ca; border-radius: 6px; padding: 8px; }
.chat-form button { padding: 8px 10px; border-radius: 6px; font-weight: 750; }
#chat-mic { background: white; color: var(--blue); border: 1px solid var(--border); }
#chat-mic[aria-pressed="true"] { background: #ffe7d3; }
.mic-status { padding: 0 12px 8px; font-size: .76rem; color: var(--muted); }
.chat-form button:disabled { opacity: .55; cursor: wait; }
.chat-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; padding: 0 12px 12px; font-size: .75rem; }
.chat-footer a { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 790px) {
  .wrap { width: calc(100% - 32px); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead nav { gap: 12px; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: clamp(22px, 5vw, 36px); }
}
@media (max-width: 565px) {
  .masthead { min-height: 72px; }
  .masthead nav > a:not(.button) { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 1.05rem; }
  .brand small { font-size: .66rem; }
  .categories { padding-block: 33px; }
  .category img { height: 95px; }
  .visit { grid-template-columns: 1fr; }
}

.carpi-catalog-link { display: block; width: fit-content; margin-top: .5rem; font-weight: 700; text-decoration: underline; }
