:root {
  --ink: #170033;
  --ink-soft: #2b1d4d;
  --teal: #55c4d8;
  --sunset: #ff6e42;
  --sunset-soft: #ff2f86;
  --paper: #fffdf8;
  --mist: #f4f2f8;
  --line: rgba(23, 0, 51, 0.14);
  --muted: #5d5570;
  --shadow: 0 18px 44px rgba(23, 0, 51, 0.14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 0%, #f8f4fa 0, #eef6fa 45%, #ecf2f7 100%);
}

a { color: var(--ink-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .brand-wordmark {
  font-family: "Cormorant Garamond", serif;
  margin: 0 0 14px;
}

h1 { font-size: clamp(2.3rem, 5vw, 4.15rem); line-height: 0.98; }
h2 { font-size: clamp(1.8rem, 3vw, 2.85rem); line-height: 1.12; }
h3 { font-size: 1.42rem; }
p { margin: 0 0 16px; line-height: 1.72; }

.container { width: min(1140px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: 76px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(232, 240, 248, 0.68)); }
.section-kicker {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: #157f95;
  margin-bottom: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(23, 0, 51, 0.12);
  background: #170033;
}

.brand-wordmark {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
}

.site-nav { display: flex; gap: 16px; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 600; }
.nav-cta {
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(120deg, var(--sunset-soft), var(--sunset));
  padding: 11px 16px;
}
.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  font: inherit;
  padding: 8px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  background-image: url("../images/generated/hero-office-bg-user.webp");
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 5, 22, 0.76) 0%, rgba(12, 5, 22, 0.52) 42%, rgba(12, 5, 22, 0.2) 72%, rgba(12, 5, 22, 0.1) 100%),
    radial-gradient(circle at 5% 14%, rgba(255, 110, 66, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(85, 196, 216, 0.14), transparent 42%);
}
.hero-grid,
.split-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
}
.hero-copy { max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero h1,
.hero p {
  color: #fff;
}
.hero .section-kicker {
  color: #8fe7f4;
}
.hero h1 {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.panel,
.card,
.photo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel { padding: 28px; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 700;
}
.btn-primary { color: #fff; background: linear-gradient(120deg, var(--sunset-soft), var(--sunset)); }
.btn-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.btn:hover { text-decoration: none; }

.grid-3,
.grid-2,
.footer-grid,
.photo-grid,
.chat-suggest {
  display: grid;
  gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 24px; }

.photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.photo-card { overflow: hidden; }
.photo-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.photo-card figcaption { padding: 10px 12px; font-size: 0.92rem; color: var(--muted); }

.site-footer {
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
}
.footer-grid { grid-template-columns: 1.4fr 1.1fr 1fr; align-items: start; }
.footer-grid > div { display: grid; gap: 8px; }
.footer-grid p { margin: 0; color: var(--muted); }

.page-hero {
  padding: 62px 0 40px;
  background: linear-gradient(135deg, rgba(255, 110, 66, 0.16), rgba(85, 196, 216, 0.16));
}

.map-embed {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 14px;
}

.chat-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-log {
  padding: 18px;
  min-height: 360px;
  max-height: 480px;
  overflow-y: auto;
  background: linear-gradient(180deg, #fcfbff, #f4f8fd);
}
.chat-row { margin-bottom: 12px; }
.chat-msg {
  display: inline-block;
  padding: 11px 14px;
  border-radius: 14px;
  max-width: 90%;
  line-height: 1.55;
}
.chat-user { text-align: right; }
.chat-user .chat-msg { background: #170033; color: #fff; border-top-right-radius: 4px; }
.chat-bot .chat-msg { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.chat-suggest { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.chat-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 11px;
  font: inherit;
  cursor: pointer;
}

.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  border-radius: 999px;
  padding: 12px 16px;
  background: #170033;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(23, 0, 51, 0.28);
}
.chat-fab:hover { text-decoration: none; }

.chat-popup {
  position: fixed;
  right: 18px;
  bottom: 72px;
  width: min(370px, calc(100% - 24px));
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 40px rgba(23, 0, 51, 0.24);
  overflow: hidden;
}

.chat-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #170033;
  color: #fff;
}

.chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .grid-3,
  .grid-2,
  .photo-grid,
  .footer-grid,
  .chat-suggest { grid-template-columns: 1fr; }

  .site-nav {
    display: none;
    position: absolute;
    top: 79px;
    left: 16px;
    right: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .mobile-toggle { display: inline-flex; }
}
