:root {
  --bg: #e8e4df;
  --bg-pattern: #ddd7cf;
  --surface: #faf9f7;
  --surface-2: #f3f0eb;
  --ink: #1a1814;
  --ink-soft: #5c574e;
  --muted: #8a8478;
  --line: #e0dbd3;
  --accent: #3d5a45;
  --accent-hover: #324a39;
  --accent-grad: linear-gradient(135deg, #3b6bff 0%, #2f8bff 55%, #22c1f0 100%);
  --accent-glow: rgba(59, 107, 255, 0.38);
  --accent-soft: #e8efe9;
  --wood: #6b5344;
  --wood-deep: #4a3a30;
  --user-bubble: #3d5a45;
  --bot-bubble: #f0ece6;
  --shadow: 0 18px 50px rgba(40, 32, 24, 0.12);
  --radius: 20px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --page-bg:
    radial-gradient(ellipse 80% 50% at 50% -10%, #cfc6ba 0%, transparent 55%),
    linear-gradient(165deg, #ebe6df 0%, #d9d2c8 45%, #e5e0d8 100%);
  --qr-dark: #4a3a30;
  --qr-light: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-bg,
    radial-gradient(ellipse 80% 50% at 50% -10%, #cfc6ba 0%, transparent 55%),
    linear-gradient(165deg, #ebe6df 0%, #d9d2c8 45%, #e5e0d8 100%)
  );
  -webkit-font-smoothing: antialiased;
}

body[data-card-mode="dark"] .card {
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-card-mode="dark"] .profile {
  border-color: #ffffff;
  background: #ffffff;
}

body[data-card-mode="dark"] .qr-block {
  background: #ffffff;
  border-color: #ffffff;
}

.page {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 28px 16px 48px;
}

/* Desktop: use more of the screen instead of a phone-width column */
@media (min-width: 900px) {
  .page { width: min(620px, 100%); }
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.55);
  animation: card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero */
.card-hero {
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: visible;
  z-index: 2;
}

.cover {
  height: 148px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 40%, rgba(26, 24, 20, 0.35) 100%),
    url("https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?w=900&h=400&fit=crop")
      center / cover no-repeat;
}

.hero-bottom {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 3;
}

.hero-bottom .profile-wrap,
.hero-bottom .qr-block {
  pointer-events: auto;
}

.profile-wrap {
  flex-shrink: 0;
  border-radius: 18px;
  line-height: 0;
}

.profile {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: contain; /* logos stay fully visible inside the picture frame */
  object-position: center;
  border: 4px solid var(--surface);
  box-shadow: 0 8px 20px rgba(40, 32, 24, 0.18);
  background: #fff;
  display: block;
}

.qr-block {
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--surface);
  border: 3px solid var(--surface);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(40, 32, 24, 0.18);
  padding: 3px 3px 2px;
  z-index: 3;
}

.qr-img,
#qr-code {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  line-height: 0;
}

#qr-code img,
#qr-code canvas {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  display: block !important;
}

#qr-code canvas {
  display: none !important;
}

.qr-share {
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 1px 4px 3px;
}

.qr-share:hover {
  text-decoration: underline;
}

.identity {
  position: relative;
  z-index: 1;
  padding: 56px 22px 8px;
  padding-right: 100px;
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--wood-deep);
  animation: fade-up 0.6s 0.15s both;
}

.tagline {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 400;
  animation: fade-up 0.6s 0.25s both;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 5px 10px 5px 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  animation: fade-up 0.6s 0.35s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Contacts */
.contacts {
  display: grid;
  gap: 2px;
  padding: 18px 14px 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.contact-item:hover,
.contact-item:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.contact-item small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1px;
}

.icon-box {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--wood);
}

/* Social + QR */
.meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 22px 20px;
  border-bottom: 1px solid var(--line);
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--wood);
  background: var(--surface-2);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.socials a:hover {
  background: var(--accent-grad, var(--accent));
  color: #fff;
  transform: translateY(-2px);
}

/* Gallery (in chat) */
.gallery-section {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.gallery-grid.in-chat .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item {
  display: block;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--surface-2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Videos */
.video-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.video-card p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.video-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.video-fallback img {
  width: 72px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Social feeds */
.social-feed-wrap {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.fb-page-card,
.ig-profile-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  overflow: hidden;
}

.fb-page-head,
.ig-profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
}

.fb-page-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fb-page-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-grad, var(--accent));
  color: #fff;
  flex-shrink: 0;
}

.fb-page-brand strong,
.ig-profile-meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--wood-deep);
}

.fb-page-brand small,
.ig-profile-meta span,
.ig-profile-meta small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.fb-follow,
.ig-follow {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--accent-grad, var(--accent));
  padding: 8px 12px;
  border-radius: 999px;
}

.fb-follow:hover,
.ig-follow:hover {
  background: var(--accent-hover);
}

.fb-feed-list {
  display: grid;
  gap: 0;
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fb-post {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.fb-post:last-child {
  border-bottom: none;
}

.fb-post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.fb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.fb-post-head strong {
  display: block;
  font-size: 0.82rem;
  color: var(--ink);
}

.fb-post-head small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

.fb-post-text {
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.fb-post-media {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.fb-post-media img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.fb-post-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.fb-post-foot a {
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
}

.ig-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-soft);
  flex-shrink: 0;
  background: var(--surface-2);
}

.ig-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-profile-meta {
  flex: 1;
  min-width: 0;
}

.ig-bio {
  margin: 0;
  padding: 10px 12px 4px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.ig-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 8px;
}

.ig-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-2);
  text-decoration: none;
}

.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ig-tile:hover img {
  transform: scale(1.06);
}

.ig-tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 5px 5px;
  font-size: 0.58rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(20, 16, 12, 0.72));
  line-height: 1.2;
}

.ig-tile-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.btn-outline {
  display: inline-flex;
  margin-top: 4px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  justify-content: center;
}

/* Awards */
.awards-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.award-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.award-media {
  position: relative;
  min-height: 112px;
  background: var(--surface-2);
}

.award-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.award-year {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(26, 24, 20, 0.72);
}

.award-body {
  position: relative;
  padding: 12px 12px 12px 14px;
  min-width: 0;
}

.award-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.award-card h3 {
  margin: 0 28px 2px 0;
  font-size: 0.88rem;
  color: var(--wood-deep);
  line-height: 1.25;
}

.award-issuer {
  margin: 0 0 6px !important;
  font-size: 0.72rem !important;
  color: var(--muted) !important;
  font-weight: 500;
}

.award-card p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* Reviews */
.reviews-panel {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.reviews-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #fff8e7 0%, #f3f0eb 100%);
  border: 1px solid #e8d9b0;
  transition: transform 0.15s, box-shadow 0.2s;
}

.reviews-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(40, 32, 24, 0.08);
}

.reviews-score strong {
  display: block;
  font-size: 1.75rem;
  font-family: var(--display);
  color: var(--wood-deep);
  line-height: 1;
}

.reviews-score .stars {
  display: block;
  color: #e6a817;
  letter-spacing: 1px;
  font-size: 0.95rem;
  margin: 4px 0;
}

.reviews-score small {
  color: var(--muted);
  font-size: 0.72rem;
}

.reviews-cta {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.reviews-list {
  display: grid;
  gap: 8px;
}

.review-card {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.review-top strong {
  font-size: 0.85rem;
  color: var(--wood-deep);
}

.review-card .stars {
  color: #e6a817;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.review-card p {
  margin: 0 0 6px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.review-card small {
  color: var(--muted);
  font-size: 0.7rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent-grad, var(--accent));
  padding: 12px 14px;
  border-radius: 12px;
}

.btn-google:hover {
  background: var(--accent-hover);
}

/* Appointment wizard */
.appt-wizard {
  margin-top: 12px;
  padding: 14px 12px 12px;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(40, 32, 24, 0.06);
}

.appt-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 10px;
}

.appt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5cfc5;
  transition: background 0.25s, transform 0.25s;
}

.appt-dot.active {
  background: var(--accent-grad, var(--accent));
  transform: scale(1.25);
}

.appt-dot.done {
  background: var(--wood);
}

.appt-line {
  width: 28px;
  height: 2px;
  background: var(--line);
}

.appt-step-label {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.appt-pane {
  display: none;
  animation: appt-in 0.3s ease;
}

.appt-pane.active {
  display: block;
}

@keyframes appt-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.appt-type-grid {
  display: grid;
  gap: 8px;
}

.appt-type {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  text-align: left;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.appt-type:hover {
  border-color: #a8bfb0;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(61, 90, 69, 0.08);
}

.appt-type.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(61, 90, 69, 0.12);
}

.appt-type-icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--wood);
}

.appt-type.selected .appt-type-icon {
  background: var(--accent-grad, var(--accent));
  color: #fff;
}

.appt-type strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wood-deep);
}

.appt-type small {
  font-size: 0.72rem;
  color: var(--muted);
}

.appt-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.appt-field em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  color: #b0a99c;
}

.appt-field input,
.appt-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.appt-field input:focus,
.appt-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 90, 69, 0.12);
}

.appt-sub {
  margin: 4px 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Custom calendar */
.appt-calendar {
  margin-bottom: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cal-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wood-deep);
  text-align: center;
  flex: 1;
}

.cal-nav {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--wood);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cal-nav:hover {
  background: var(--accent-grad, var(--accent));
  color: #fff;
  border-color: var(--accent);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}

.cal-day.empty {
  pointer-events: none;
  visibility: hidden;
}

.cal-day:hover:not(.disabled):not(.selected) {
  background: var(--accent-soft);
  color: var(--accent);
}

.cal-day.today:not(.selected) {
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.cal-day.selected {
  background: var(--accent-grad, var(--accent));
  color: #fff;
  font-weight: 700;
  transform: scale(1.05);
}

.cal-day.disabled {
  color: #c5bfb5;
  cursor: not-allowed;
  opacity: 0.55;
}

.cal-selected-label {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

.appt-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.appt-slot {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 11px 8px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.appt-slot:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.appt-slot.selected {
  background: var(--accent-grad, var(--accent));
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.02);
}

.appt-nav {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.appt-back,
.appt-next,
.appt-confirm {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.appt-back {
  flex: 0 0 auto;
  background: var(--surface-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.appt-next,
.appt-confirm {
  flex: 1;
  background: var(--accent-grad, var(--accent));
  color: #fff;
}

.appt-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.appt-confirm {
  background: var(--accent-grad, var(--accent));
}

.appt-confirm:hover {
  background: var(--accent-hover);
}

.appt-next:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.appt-back:hover {
  transform: translateY(-1px);
}

.appt-sum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.appt-sum-card h4 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--wood-deep);
}

.appt-sum-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.appt-sum-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.appt-sum-card li span {
  color: var(--muted);
  flex-shrink: 0;
}

.appt-sum-card li strong {
  text-align: right;
  font-weight: 560;
  color: var(--ink);
}

/* Payment */
.payment-box {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.pay-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.85rem;
}

.pay-row span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  width: 100%;
}

.copy-btn {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

.pay-qr {
  text-align: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pay-qr img {
  display: inline-block;
  border-radius: 8px;
  background: #fff;
}

.pay-qr p {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.pay-bank {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pay-bank h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--wood-deep);
}

.pay-bank p {
  margin: 0 0 8px;
  font-size: 0.85rem;
}

.pay-bank small {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

/* Lightbox — must sit outside transformed/.card ancestors */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  background: rgba(20, 16, 12, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 28px;
  margin: 0;
  box-sizing: border-box;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-figure {
  margin: 0;
  max-width: min(920px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox figcaption {
  margin: 0;
  color: #e8e4df;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 10000;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.lightbox-prev {
  left: max(10px, env(safe-area-inset-left));
}

.lightbox-next {
  right: max(10px, env(safe-area-inset-right));
}

.lightbox-counter {
  margin: 0;
  color: rgba(232, 228, 223, 0.7);
  font-size: 0.78rem;
}

@media (max-width: 480px) {
  .lightbox {
    padding: 56px 52px 28px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

/* Assistant */
.assistant {
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 40%);
}

.assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px 12px;
}

.assistant-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wood-deep);
}

.assistant-head p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.speak-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.speak-toggle[aria-pressed="false"] {
  color: var(--muted);
  opacity: 0.7;
}

.chat-window {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  overflow: hidden;
  margin-bottom: 10px;
}

.quick-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}

.chat {
  height: 300px;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  padding: 8px 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: auto;
  background: transparent;
  border-radius: 0;
  border: none;
  margin-bottom: 0;
}

.chip {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.15;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.active {
  background: var(--accent-grad, var(--accent));
  border-color: var(--accent);
  color: #fff;
}

.chat::-webkit-scrollbar {
  width: 4px;
}

.chat::-webkit-scrollbar-thumb {
  background: #cfc8bc;
  border-radius: 4px;
}

.msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  animation: msg-in 0.35s ease both;
  flex-shrink: 0;
}

.msg.msg-rich {
  max-width: 100%;
  width: 100%;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.msg.bot {
  align-self: flex-start;
  background: var(--bot-bubble);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.msg.user {
  align-self: flex-end;
  background: var(--user-bubble);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg .label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 4px;
}

.msg ul {
  margin: 6px 0 0;
  padding-left: 1.1em;
}

.msg li {
  margin: 3px 0;
}

/* Product / service cards inside chat */
.item-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}

.item-card img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}

.item-card-body {
  padding: 8px 9px 10px;
}

.item-card h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wood-deep);
  line-height: 1.25;
}

.item-card p {
  margin: 3px 0 6px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

.item-card .price {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.item-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.btn-whatsapp-sm {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  background: var(--accent-grad, var(--accent));
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.btn-whatsapp-sm:hover {
  background: var(--accent-hover);
}

.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent-grad, var(--accent));
  padding: 10px 16px;
  border-radius: 10px;
}

.btn-whatsapp:hover {
  background: var(--accent-hover);
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 2px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: bounce 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.composer input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 8px 4px;
  outline: none;
}

.composer input::placeholder {
  color: var(--muted);
}

.mic-btn,
.send-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  position: relative;
}

.mic-btn {
  background: var(--surface-2);
  color: var(--wood);
}

.mic-btn.listening {
  background: var(--accent-grad, var(--accent));
  color: #fff;
}

.mic-pulse {
  display: none;
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 2px solid var(--accent);
  animation: pulse-ring 1.2s ease-out infinite;
}

.mic-btn.listening .mic-pulse {
  display: block;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.send-btn {
  background: var(--accent-grad, var(--accent));
  color: #fff;
  transition: background 0.2s, transform 0.15s;
}

.send-btn:hover {
  background: var(--accent-hover);
}

.send-btn:active {
  transform: scale(0.96);
}

.mic-hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.page-foot {
  text-align: center;
  padding: 20px 8px 0;
}

.page-foot p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Sticky section dropdown */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 55;
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.section-nav-shell {
  position: relative;
  width: min(100%, 280px);
}

.section-nav-toggle {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(40, 32, 24, 0.08);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--ink);
}

.section-nav-toggle:hover,
.section-nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
}

.section-nav-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-nav-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wood-deep);
}

.section-nav-toggle svg {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.section-nav-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.section-nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(60vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(40, 32, 24, 0.16);
  display: grid;
  gap: 2px;
  z-index: 60;
}

.section-nav-menu[hidden] {
  display: none !important;
}

.section-nav-menu a {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
}

.section-nav-menu a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.section-nav-menu a.is-active {
  color: #fff;
  background: var(--accent-grad, var(--accent));
  border-color: var(--accent);
}

.page-sections {
  padding-bottom: 24px;
}

.content-section {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.content-section:last-child {
  border-bottom: none;
}

.content-section .section-head {
  padding: 0 0 12px;
}

.content-section .section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--wood-deep);
}

.content-section .section-head p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.content-section .item-cards {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--wood-deep);
  padding: 12px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.enquiry-cta {
  padding: 16px;
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 16px;
}

.about-card {
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
  display: grid;
  gap: 12px;
}

.about-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.about-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.about-meta li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.about-meta span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-meta strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--wood-deep);
}

.enquiry-cta p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.enquiry-actions {
  display: grid;
  gap: 8px;
}

.enquiry-actions .btn-whatsapp,
.enquiry-actions .btn-outline {
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

/* Chat docked inside card */
.card-chat-dock {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding: 0 14px 16px;
  margin-top: -4px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--surface) 42%);
  border-radius: 0 0 var(--radius) var(--radius);
}

.card-chat-dock > * {
  pointer-events: auto;
}

.chat-fab {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: var(--accent-grad, var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px rgba(40, 32, 24, 0.28);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
  isolation: isolate;
}

.chat-fab .fab-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(61, 90, 69, 0.55);
  background: transparent;
  box-shadow: 0 0 0 1px rgba(61, 90, 69, 0.12);
  z-index: -1;
  pointer-events: none;
  animation: fab-water-ripple 2.6s cubic-bezier(0.15, 0.6, 0.3, 1) infinite;
}

.chat-fab .fab-ripple-2 {
  animation-delay: 0.85s;
}

.chat-fab .fab-ripple-3 {
  animation-delay: 1.7s;
}

@keyframes fab-water-ripple {
  0% {
    transform: scale(1);
    opacity: 0.75;
    border-color: rgba(61, 90, 69, 0.65);
  }
  70% {
    opacity: 0.18;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
    border-color: rgba(61, 90, 69, 0);
  }
}

.chat-fab:hover {
  transform: scale(1.05);
  background: var(--accent-hover);
}

.chat-fab .fab-icon-mic,
.chat-fab .fab-icon-close {
  position: relative;
  z-index: 1;
}

.chat-fab .fab-icon-close {
  display: none;
}

.chat-fab.is-open .fab-icon-mic {
  display: none;
}

.chat-fab.is-open .fab-icon-close {
  display: block;
}

.chat-fab.is-open .fab-ripple {
  animation: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .chat-fab .fab-ripple {
    animation: none;
    opacity: 0;
  }
}

.chat-float {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: min(100%, 360px);
  max-height: min(480px, 70vh);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(40, 32, 24, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--surface);
  animation: chat-pop 0.28s ease;
}

.chat-float[hidden] {
  display: none !important;
}

@keyframes chat-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.chat-float .assistant {
  padding: 12px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 40%);
  display: flex;
  flex-direction: column;
  max-height: min(480px, 70vh);
}

.chat-float .assistant-head {
  padding: 4px 4px 10px;
}

.chat-float .assistant-head h2 {
  font-size: 1.05rem;
}

.assistant-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.chat-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chat-float .chat-window {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.chat-float .chat {
  height: auto;
  flex: 1;
  min-height: 160px;
  max-height: 220px;
}

.map-wrap {
  display: grid;
  gap: 10px;
}

.map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  aspect-ratio: 16 / 11;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-address {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

.page {
  padding-bottom: 48px;
}

/* Mobile / narrow: chat covers available screen (resized via visualViewport) */
.chat-float.is-fullscreen {
  position: fixed !important;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  z-index: 300;
  width: 100%;
  width: 100dvw;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  max-width: none;
  max-height: none !important;
  border-radius: 0;
  box-shadow: none;
  border: none;
  animation: none;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.chat-float.is-fullscreen .assistant {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: none !important;
  min-height: 0;
  padding:
    max(10px, env(safe-area-inset-top))
    14px
    max(10px, env(safe-area-inset-bottom))
    14px;
  box-sizing: border-box;
  overflow: hidden;
}

.chat-float.is-fullscreen .assistant-head,
.chat-float.is-fullscreen .composer,
.chat-float.is-fullscreen .mic-hint,
.chat-float.is-fullscreen .quick-options {
  flex-shrink: 0;
}

.chat-float.is-fullscreen .chat-window {
  flex: 1;
  min-height: 0;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.chat-float.is-fullscreen .chat {
  flex: 1;
  min-height: 0;
  max-height: none !important;
  height: auto !important;
}

/* Keep chat FAB reachable while scrolling the card on mobile */
@media (max-width: 640px) {
  .card-chat-dock:not(.is-open) {
    position: static;
    background: none;
    padding: 0;
    margin: 0;
    pointer-events: none;
  }

  .card-chat-dock:not(.is-open) .chat-fab {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 90;
    pointer-events: auto;
  }
}

@media (max-width: 400px) {
  .page {
    padding: 12px 10px 32px;
  }

  .brand {
    font-size: 1.55rem;
  }

  .chat {
    height: 240px;
  }

  .chat-float:not(.is-fullscreen) {
    width: 100%;
  }

  .card-chat-dock {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* QR popup */
.qr-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 12, 10, 0.6); backdrop-filter: blur(3px); }
.qr-modal-box { position: relative; width: min(360px, 100%); padding: 24px 22px 20px; text-align: center; background: var(--surface, #fff); color: var(--ink, #222); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.qr-modal-box h3 { margin: 0 28px 2px; font-size: 1.05rem; }
.qr-modal-box p { margin: 0 0 14px; font-size: 0.85rem; color: var(--ink-soft, #777); }
.qr-modal-code { width: 240px; height: 240px; max-width: 100%; margin: 0 auto 16px; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.08); line-height: 0; }
.qr-modal-code img, .qr-modal-code canvas { width: 100% !important; height: 100% !important; display: block; }
.qr-modal-code canvas { display: none !important; }
.qr-modal-code canvas + img { display: block !important; }
.qr-modal-actions { display: flex; flex-direction: column; gap: 8px; }
.qr-modal-btn { font: inherit; font-weight: 600; font-size: 0.9rem; padding: 11px 14px; border-radius: 12px; cursor: pointer; color: var(--accent); background: transparent; border: 1.5px solid var(--accent); }
.qr-modal-btn.primary { color: #fff; background: var(--accent-grad, var(--accent)); }
.qr-modal-x { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft, #777); }
#qr-code { cursor: pointer; }
.qr-modal-url { display: block; margin: -4px auto 14px; max-width: 100%; padding: 8px 12px; font-size: 0.82rem; font-weight: 600; word-break: break-all; text-decoration: none; color: var(--accent); background: rgba(0, 0, 0, 0.045); border-radius: 10px; }
.qr-modal-url:hover { text-decoration: underline; }


/* ===== Modern polish: gradient accents, branded cover, soft depth ===== */
.card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 70px -20px var(--accent-glow, rgba(30, 40, 60, 0.25)), 0 8px 24px rgba(20, 30, 60, 0.08);
}

/* Cover: brand-coloured tint + gradient edge instead of a flat blue line */
.cover { position: relative; height: 164px; }
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-grad, none);
  opacity: 0.34;
  mix-blend-mode: soft-light;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 40, 0) 35%, rgba(10, 16, 40, 0.5) 100%);
}
.card-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 161px;
  height: 3px;
  background: var(--accent-grad, var(--accent));
  z-index: 1;
}

.brand { color: var(--wood-deep); letter-spacing: -0.025em; }
.tagline { color: var(--ink-soft); font-weight: 500; }
.location { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Icon tiles: soft tinted, accent coloured */
.icon-box,
.socials a {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.contact-item:hover .icon-box { background: var(--accent-grad, var(--accent)); color: #fff; }
.socials a:hover { box-shadow: 0 8px 18px -6px var(--accent-glow); }

/* Primary buttons: gradient + glow */
.btn-whatsapp,
.fixed-cta-call,
.appt-confirm,
.qr-modal-btn.primary {
  background: var(--accent-grad, var(--accent));
  box-shadow: 0 10px 22px -10px var(--accent-glow);
}
.chat-fab { box-shadow: 0 12px 28px -8px var(--accent-glow); }

/* Section headings: tidy accent bar */
.page-sections h2, .section-title { position: relative; }

/* Desktop: a roomier assistant when opened */
@media (min-width: 900px) {
  .chat-float { width: min(100%, 540px); max-height: min(720px, 84vh); }
  .chat-float .assistant { max-height: min(720px, 84vh); }
  .chat-float .chat-window { flex: 1 1 auto; }
  .chat-float .chat { flex: 1 1 auto; min-height: 320px; max-height: min(500px, 56vh); }
}

/* The open assistant must sit above the sticky section dropdown (z-index 55) */
.card-chat-dock { z-index: 70; }

/* Appointment: step 1 is a single "Book Appointment" button; progress only shows once booking starts */
.appt-wizard.appt-intro .appt-progress,
.appt-wizard.appt-intro .appt-step-label { display: none; }
.appt-start { display: grid; gap: 12px; justify-items: stretch; padding: 6px 2px 2px; text-align: center; }
.appt-start p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.appt-start-btn { width: 100%; padding: 14px 16px; font-size: 1rem; }

/* Enquiry: two equal buttons side by side — Enquire Now | WhatsApp */
.enquiry-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
.enquiry-actions .btn-whatsapp,
.enquiry-actions .btn-outline { display: flex; align-items: center; justify-content: center; margin: 0; padding: 14px 12px; font-size: 0.95rem; font-weight: 600; border-radius: 12px; }
.enquiry-actions .enquiry-btn-wa { background: #25d366; color: #fff; border: none; }

/* ===== Smart Connect ===== */
.smart-connect-wrap { padding: 4px 22px 14px; }
.smart-connect-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; font-family: inherit; color: var(--accent); background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 14px; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.smart-connect-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px var(--accent-glow); }
.sc-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--accent-grad, var(--accent)); }
.sc-txt { display: grid; min-width: 0; }
.sc-txt strong { font-size: 0.98rem; color: var(--ink); }
.sc-txt small { font-size: 0.76rem; color: var(--ink-soft); }

.sc-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(12, 16, 32, 0.6); backdrop-filter: blur(4px); }
.sc-box { position: relative; width: min(440px, 100%); max-height: 92vh; overflow-y: auto; padding: 22px 20px 20px; background: var(--surface, #fff); color: var(--ink, #1a1814); border-radius: 20px; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35); }
.sc-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.sc-steps { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; }
.sc-step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.sc-step.on { color: #fff; background: var(--accent-grad, var(--accent)); }
.sc-line { flex: 1; height: 2px; background: var(--line); }
.sc-line.on { background: var(--accent-grad, var(--accent)); }
.sc-box h3 { margin: 0 0 4px; font-size: 1.12rem; }
.sc-box p.sc-sub { margin: 0 0 14px; font-size: .86rem; color: var(--ink-soft); }
.sc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.sc-pickbtn { display: grid; justify-items: center; gap: 6px; padding: 16px 8px; font: inherit; font-size: .86rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 14px; cursor: pointer; }
.sc-preview { display: block; width: 100%; max-height: 190px; object-fit: contain; border-radius: 12px; background: var(--surface-2); margin-bottom: 10px; }
.sc-status { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: .86rem; color: var(--ink-soft); }
.sc-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: scSpin .8s linear infinite; }
@keyframes scSpin { to { transform: rotate(360deg); } }
.sc-field { display: grid; gap: 4px; margin-bottom: 11px; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.sc-field input, .sc-field textarea { font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); padding: 10px 12px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 10px; outline: none; }
.sc-field input:focus, .sc-field textarea:focus { border-color: var(--accent); }
.sc-field.err input { border-color: #e5484d; }
.sc-err { color: #e5484d; font-size: .74rem; font-weight: 500; }
.sc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.sc-nav { display: flex; gap: 10px; margin-top: 6px; }
.sc-btn { flex: 1; padding: 13px 12px; font: inherit; font-weight: 700; font-size: .95rem; color: #fff; background: var(--accent-grad, var(--accent)); border: 0; border-radius: 12px; cursor: pointer; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sc-btn.alt { color: var(--accent); background: var(--accent-soft); }
.sc-btn.wa { background: #25d366; }
.sc-btn[disabled] { opacity: .55; cursor: default; }
.sc-skip { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; font-size: .84rem; color: var(--ink-soft); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.sc-ok { display: grid; justify-items: center; text-align: center; gap: 4px; margin-bottom: 14px; }
.sc-tick { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; background: var(--accent-grad, var(--accent)); margin-bottom: 6px; }
.sc-host { padding: 12px 14px; margin: 4px 0 14px; font-size: .88rem; line-height: 1.6; background: var(--surface-2); border-radius: 12px; }
.sc-host b { display: block; font-size: 1rem; }
.sc-field input, .sc-field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.sc-grid2 > * { min-width: 0; }
.sc-steps { margin-right: 40px; }

.chip[hidden] { display: none !important; }

.sc-labelrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-mic { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font: inherit; font-size: .78rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; cursor: pointer; }
.sc-mic.rec { color: #fff; background: #e5484d; border-color: #e5484d; animation: scPulse 1.3s infinite; }
@keyframes scPulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); } 100% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); } }
.sc-rec { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; font-size: .8rem; font-weight: 500; color: #b42318; background: #fef3f2; border-radius: 10px; }
.sc-rec[hidden] { display: none; }
.sc-recdot { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; animation: scBlink 1s infinite; }
@keyframes scBlink { 50% { opacity: .25; } }
.sc-rec b { font-variant-numeric: tabular-nums; }

/* Smart Connect: make it the standout action on the card */
.smart-connect-btn { position: relative; overflow: hidden; color: #fff; background: var(--accent-grad, var(--accent)); border: 0; box-shadow: 0 14px 28px -12px var(--accent-glow, rgba(59, 107, 255, .5)); padding: 14px 16px; }
.smart-connect-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px var(--accent-glow, rgba(59, 107, 255, .6)); }
.smart-connect-btn .sc-ico { color: #fff; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.smart-connect-btn .sc-txt strong { color: #fff; font-size: 1.02rem; }
.smart-connect-btn .sc-txt small { color: rgba(255, 255, 255, .88); }
.smart-connect-btn::after { content: "›"; margin-left: auto; font-size: 1.7rem; line-height: 1; color: rgba(255, 255, 255, .9); }
.smart-connect-btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: scShine 3.4s ease-in-out infinite; }
@keyframes scShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .smart-connect-btn::before { animation: none; display: none; } }

/* ...and in the chat's quick topics */
.chip[data-topic="smartconnect"] { color: #fff; font-weight: 700; background: var(--accent-grad, var(--accent)); border-color: transparent; box-shadow: 0 8px 16px -8px var(--accent-glow, rgba(59, 107, 255, .5)); }
.chip[data-topic="smartconnect"]::before { content: "✦ "; }

/* Searchable language picker */
.lang-picker { position: relative; }
.lang-picker[hidden], .lang-pop[hidden] { display: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 150px; height: 36px; padding: 0 10px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--accent); }
.lang-btn #lang-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-btn svg { flex: none; color: var(--accent); }
.lang-pop { position: fixed; z-index: 2000; top: calc(100% + 6px); right: 0; width: min(280px, 82vw); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(20, 25, 50, .25); }
.lang-search { width: 100%; box-sizing: border-box; padding: 9px 12px; font: inherit; font-size: .88rem; color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 10px; outline: none; }
.lang-search:focus { border-color: var(--accent); }
.lang-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.lang-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.lang-list li b { font-size: .92rem; font-weight: 600; color: var(--ink); }
.lang-list li small { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.lang-list li.is-active { background: var(--accent-soft); }
.lang-list li.is-current b { color: var(--accent); }
.lang-list li.is-current::after { content: "✓"; color: var(--accent); font-weight: 700; margin-left: 4px; }
.lang-list li.lang-empty { cursor: default; justify-content: center; color: var(--muted); font-size: .84rem; }

/* Desktop: taller product / service images in the page sections (+50px over the 88px base) */
@media (min-width: 900px) {
  .content-section .item-card img { height: 138px; }
}
