/*
  Angry Cat Coffee styles
  Beginner tip: change the color variables below to quickly update the whole site.
*/
:root {
  --cream: #fff8ef;
  --foam: #f7ead8;
  --coffee: #3d2517;
  --espresso: #21130d;
  --caramel: #c77735;
  --caramel-dark: #9f5724;
  --sage: #53634c;
  --muted: #7a685c;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(61, 37, 23, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--coffee);
  background: linear-gradient(180deg, var(--cream), #fffdf9 48%, var(--foam));
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 248, 239, 0.86);
  border-bottom: 1px solid rgba(61, 37, 23, 0.08);
  backdrop-filter: blur(14px);
}

.logo,
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--coffee);
  color: var(--cream);
}

nav a {
  font-weight: 700;
  color: var(--sage);
}

.section-pad {
  padding: 90px clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 48px;
  min-height: 78vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--caramel-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--espresso);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 11vw, 8.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

h3 {
  font-size: 1.7rem;
}

.hero-text,
.section-heading p,
.about-section p,
.cta-section p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--caramel);
  border-radius: 999px;
  background: var(--caramel);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(199, 119, 53, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(199, 119, 53, 0.3);
}

.button.ghost {
  background: transparent;
  color: var(--caramel-dark);
  box-shadow: none;
}

.button.ghost.light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  color: var(--white);
}

.hero-card,
.info-card,
.menu-card {
  border: 1px solid rgba(61, 37, 23, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  background:
    radial-gradient(circle at top right, rgba(199, 119, 53, 0.24), transparent 36%),
    var(--white);
}

.steam {
  color: var(--caramel);
  font-size: 4rem;
  letter-spacing: -0.3em;
}

.card-label {
  color: var(--sage);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card strong {
  display: inline-block;
  margin-top: 14px;
  color: var(--caramel-dark);
  font-size: 1.5rem;
}

.menu-section {
  background: rgba(255, 255, 255, 0.38);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

code {
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--foam);
  color: var(--caramel-dark);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.menu-card {
  padding: 24px;
}

.menu-card .price {
  color: var(--caramel-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.menu-card p {
  color: var(--muted);
}

.split-section,
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 34px;
}

.info-card {
  padding: 30px;
}

.hours-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(61, 37, 23, 0.1);
}

.hours-list span,
.muted {
  color: var(--muted);
}

.about-image {
  display: grid;
  min-height: 340px;
  place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(circle, rgba(255, 248, 239, 0.5), transparent 45%),
    linear-gradient(135deg, #50311e, #9f5724);
  color: var(--cream);
  font-size: 8rem;
  box-shadow: var(--shadow);
}

.cta-section {
  margin: 40px clamp(20px, 5vw, 72px) 80px;
  padding: 70px 24px;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(135deg, var(--espresso), #5b3420);
  color: var(--white);
  text-align: center;
}

.cta-section h2,
.cta-section p,
.cta-section .eyebrow {
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
}

.site-footer {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .site-header,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 12px;
  }

  .hero,
  .split-section,
  .about-section,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .section-pad {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* Floating chatbot widget */
.chatbot-widget {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 12px;
  max-width: calc(100vw - 32px);
  font-family: inherit;
}

.chatbot-toggle,
.chatbot-form button,
.chatbot-chip,
.chatbot-close {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(33, 19, 13, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(33, 19, 13, 0.32);
}

.chatbot-panel {
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(61, 37, 23, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 24px 70px rgba(33, 19, 13, 0.26);
}

.chatbot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, var(--espresso), #5b3420);
  color: var(--white);
}

.chatbot-header h2,
.chatbot-header p {
  margin: 0;
  color: var(--white);
}

.chatbot-header h2 {
  font-size: 1.6rem;
}

.chatbot-eyebrow {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.chatbot-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
}

.chatbot-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  padding: 18px;
  overflow-y: auto;
}

.chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.chat-message.bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--foam);
  color: var(--coffee);
}

.chat-message.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--caramel);
  color: var(--white);
}

.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}

.chatbot-chip {
  padding: 8px 10px;
  border: 1px solid rgba(199, 119, 53, 0.35);
  border-radius: 999px;
  background: var(--white);
  color: var(--caramel-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(61, 37, 23, 0.1);
  background: var(--cream);
}

.chatbot-form input {
  min-width: 0;
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(61, 37, 23, 0.18);
  border-radius: 999px;
  color: var(--coffee);
  font: inherit;
}

.chatbot-form input:focus {
  outline: 3px solid rgba(199, 119, 53, 0.22);
  border-color: var(--caramel);
}

.chatbot-form button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--caramel);
  color: var(--white);
  font-weight: 900;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .chatbot-widget {
    right: 12px;
    bottom: 12px;
  }

  .chatbot-panel {
    width: calc(100vw - 24px);
  }

  .chatbot-log {
    max-height: 220px;
  }
}
