/* ================= STYLE PROFILE — design system (light) ================= */
:root {
  --paper: #fbf9f6;      /* page */
  --paper-2: #f3eee7;    /* alternating band */
  --paper-3: #ffffff;    /* cards */
  --ink: #191520;        /* body text */
  --ink-dim: #6d6675;    /* muted text */
  --line: #e4ddd2;       /* hairlines */
  --gold: #8a6522;       /* accent text — 4.9:1 on the page white, passes AA */
  --gold-bright: #c9a961;/* fills, swatches */
  --gold-soft: #e8d6ae;
  --lilac: #6d5f96;
  --radius: 18px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold-soft); color: var(--ink); }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 500; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em.accent { font-style: italic; color: var(--gold); }

.kicker {
  display: block; font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 16px;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.06em;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--gold { background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px rgba(25,21,32,0.18); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(25,21,32,0.26); background: #2a2434; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(25,21,32,0.25); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4vw;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.solid {
  background: rgba(251,249,246,0.92); backdrop-filter: blur(16px);
  padding: 12px 4vw; box-shadow: 0 1px 0 var(--line);
}
.nav__logo { font-family: var(--font-display); font-size: 1.25rem; }
.nav__logo span { color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--ink-dim); position: relative; transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.3s cubic-bezier(0.65,0,0.35,1);
}
.nav__links a:hover::after { width: 100%; }
.nav__burger {
  display: none; background: rgba(25,21,32,0.05); border: 1px solid rgba(25,21,32,0.16);
  color: var(--ink); width: 44px; height: 44px; border-radius: 50%; font-size: 1.15rem; cursor: pointer;
}

/* ---------------- sections ---------------- */
section { position: relative; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.section-head p { color: var(--ink-dim); max-width: 540px; margin: 16px auto 0; font-weight: 300; }

/* steps */
.steps { padding: 120px 0; }
.step {
  display: grid; grid-template-columns: 100px 1fr; gap: 28px;
  padding: 34px 0; border-top: 1px solid var(--line);
  transition: border-color 0.4s;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { border-color: var(--gold-bright); }
.step__n {
  font-family: var(--font-display); font-size: 3rem; color: transparent;
  -webkit-text-stroke: 1px rgba(154,115,40,0.5); line-height: 1;
}
.step h3 { font-size: 1.65rem; margin-bottom: 10px; }
.step p { color: var(--ink-dim); font-weight: 300; margin-bottom: 12px; max-width: 62ch; }
.step ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.step li { font-size: 0.86rem; color: var(--gold); }
.step li::before { content: '— '; opacity: 0.55; }

/* features */
.features { padding: 110px 0; background: var(--paper-2); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 24px; }
.feature {
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px 36px;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), border-color 0.4s, box-shadow 0.4s;
}
.feature:hover { transform: translateY(-8px); border-color: var(--gold-bright); box-shadow: 0 20px 44px rgba(25,21,32,0.08); }
.feature .mark { font-size: 1.6rem; display: block; margin-bottom: 16px; color: var(--gold); }
.feature h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature p { color: var(--ink-dim); font-size: 0.95rem; font-weight: 300; }

/* gallery */
.gallery { padding: 110px 0; }
.gallery__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 18px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 3/4; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(25,21,32,0.82));
}

/* stats */
.stats { padding: 90px 0; background: var(--paper-2); }
.stats__row { display: flex; justify-content: center; gap: 70px; flex-wrap: wrap; text-align: center; }
.stat b { font-family: var(--font-display); font-size: 3.2rem; color: var(--gold); display: block; line-height: 1; }
.stat span { color: var(--ink-dim); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* testimonials */
.quotes { padding: 110px 0; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.quote {
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px 30px; position: relative;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), border-color 0.4s, box-shadow 0.4s;
}
.quote:hover { transform: translateY(-7px); border-color: var(--gold-bright); box-shadow: 0 20px 44px rgba(25,21,32,0.08); }
.quote::before {
  content: '"'; font-family: var(--font-display); font-size: 4.5rem; color: var(--gold-soft);
  position: absolute; top: 8px; right: 22px; line-height: 1;
}
.quote p { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.5; margin-bottom: 20px; }
.quote cite { font-style: normal; display: block; font-weight: 600; font-size: 0.95rem; }
.quote small { color: var(--ink-dim); font-size: 0.82rem; }

/* story */
.story { padding: 110px 0; background: var(--paper-2); }
.story__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 26px; }
.story article h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--gold); }
.story article p { color: var(--ink-dim); font-weight: 300; font-size: 0.97rem; }

/* cta band */
.cta-band {
  padding: 120px 6vw; text-align: center;
  background: radial-gradient(ellipse 70% 80% at 50% 110%, rgba(201,169,97,0.22), transparent 62%), var(--paper);
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.cta-band p { color: var(--ink-dim); max-width: 520px; margin: 0 auto 34px; font-weight: 300; }

/* contact */
.contact { padding: 100px 0 120px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5vw; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 14px; }
.contact p { color: var(--ink-dim); font-weight: 300; }
form { display: grid; gap: 14px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, textarea {
  width: 100%; padding: 15px 18px; border-radius: 12px; font-size: 1rem;
  background: var(--paper-3); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--font-body);
  transition: border-color 0.25s, box-shadow 0.25s;
}
input::placeholder, textarea::placeholder { color: #a49daa; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(154,115,40,0.12); }
textarea { min-height: 130px; resize: vertical; }

/* footer */
.footer { padding: 60px 5vw 40px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.footer__brand b { font-family: var(--font-display); font-size: 1.3rem; display: block; margin-bottom: 10px; font-weight: 500; }
.footer__brand p { color: var(--ink-dim); max-width: 360px; font-size: 0.92rem; font-weight: 300; }
.footer__col h5 { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--ink-dim); margin-bottom: 9px; font-size: 0.92rem; font-weight: 300; transition: color 0.2s, transform 0.2s; }
.footer__col a:hover { color: var(--ink); transform: translateX(4px); }
.footer__bottom { text-align: center; color: #9a939f; font-size: 0.8rem; margin-top: 46px; }

.reveal { opacity: 0; transform: translateY(30px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }

/* ---------------- chatbot ---------------- */
.bot-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 130;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: var(--gold-soft); font-size: 1.3rem;
  display: grid; place-items: center; box-shadow: 0 14px 34px rgba(25,21,32,0.28);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.bot-fab:hover { transform: scale(1.08) rotate(-6deg); }
.bot-fab__badge { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-bright); border: 2px solid var(--paper); transition: opacity 0.3s; }
.bot-fab.opened .bot-fab__badge { opacity: 0; }
.bot-panel {
  position: fixed; right: 24px; bottom: 94px; z-index: 131;
  width: min(370px, calc(100vw - 40px)); height: min(540px, calc(100vh - 140px));
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(25,21,32,0.2);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.97); transform-origin: bottom right;
  transition: opacity 0.32s, visibility 0.32s, transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.bot-panel.open { opacity: 1; visibility: visible; transform: none; }
.bot-head { display: flex; align-items: center; gap: 11px; padding: 15px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.bot-head b { font-family: var(--font-display); font-size: 1rem; display: block; font-weight: 500; }
.bot-head small { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.06em; }
.bot-head button { margin-left: auto; background: none; border: none; color: var(--ink-dim); font-size: 1.05rem; cursor: pointer; padding: 6px; transition: color 0.2s, transform 0.2s; }
.bot-head button:hover { color: var(--ink); transform: rotate(90deg); }
.bot-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bot-log::-webkit-scrollbar { width: 6px; }
.bot-log::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 14px; font-size: 0.92rem; line-height: 1.55; animation: msgIn 0.35s cubic-bezier(0.22,1,0.36,1); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { background: var(--paper-2); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.msg.me { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 500; }
.msg a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.msg.me a { color: var(--gold-soft); }
.msg.typing { display: flex; gap: 4px; align-items: center; padding: 14px 16px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-dim); animation: blink 1.3s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.2s; }
.msg.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,60%,100% { opacity: 0.25; } 30% { opacity: 1; } }
.bot-chips { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 16px 12px; }
.bot-chips button {
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-family: var(--font-body);
  background: transparent; border: 1px solid rgba(154,115,40,0.45); color: var(--gold);
  font-size: 0.76rem; font-weight: 600; transition: background 0.22s, color 0.22s;
}
.bot-chips button:hover { background: var(--gold); color: #fff; }
.bot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.bot-form input { flex: 1; padding: 11px 15px; border-radius: 999px; font-size: 0.9rem; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.bot-form input:focus { outline: none; border-color: var(--gold); }
.bot-form button { width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; background: var(--ink); color: var(--paper); font-size: 1rem; flex-shrink: 0; transition: transform 0.25s; }
.bot-form button:hover { transform: scale(1.08); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav.open .nav__links {
    display: flex; position: fixed; inset: 0; background: rgba(251,249,246,0.98);
    flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  }
  .nav.open .nav__links a { font-size: 1.25rem; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .contact__grid { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bot-panel { right: 12px; left: 12px; width: auto; bottom: 86px; height: min(70vh, 470px); }
  .bot-fab { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
