/* AR Photography - Hovedstil - v2 */
@import url('https://fonts.googleapis.com/css2?family=Gloock:ital,wght@0,400&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --color-bg: #ffffff;
  --color-bg-dark: #1a1a1a;
  --color-text: #1a1a1a;
  --color-text-light: #666666;
  --color-text-muted: #666666;
  --color-border: #e8e8e8;
  --color-header-bg: rgba(255,255,255,0.97);
  --font-heading: 'Gloock', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 1400px;
  --header-height: 70px;
  /* Touch-vennlig minimumsstørrelse */
  --touch-min: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============ HEADER ============ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch-min);
  flex-shrink: 0;
}

.logo img { height: 48px; width: auto; }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(0);
  transition: transform 0.2s;
}

nav a:hover::after, nav a.active::after { transform: scaleX(1); }

.nav-booking {
  background: var(--color-text);
  color: #fff !important;
  padding: 0 18px;
  height: var(--touch-min);
  transition: background 0.2s !important;
}

.nav-booking::after { display: none !important; }
.nav-booking:hover { background: #444 !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height); left: 0; right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 99;
  padding: 0.5rem 0;
  flex-direction: column;
}

.mobile-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 1.25rem;
  min-height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ============ MAIN ============ */
main { padding-top: var(--header-height); }

/* ============ HERO ============ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.25rem 4rem;
  background: #f5f3f0;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75), 0 1px 4px rgba(0,0,0,0.9);
  margin-bottom: 2rem;
  line-height: 1.75;
  font-weight: 500;
}

.hero-logo-img {
  max-height: 100px;
  max-width: 260px;
  width: auto;
  margin-bottom: 1.5rem;
  display: none;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-dark { background: var(--color-text); color: #fff !important; }
.btn-dark:hover { background: #444; color: #fff !important; }
.btn-outline { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: #fff; }

/* ============ SECTIONS ============ */
section { padding: 4rem 1.25rem; }

.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 560px;
  line-height: 1.85;
}

/* ============ OM OSS ============ */
.about-section { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-text p {
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-text p:last-of-type { margin-bottom: 1.75rem; }

/* ============ TJENESTER ============ */
.services-section { background: #f5f3f0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  margin-top: 2.5rem;
}

.service-card {
  background: #fff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}

.service-card:hover { background: var(--color-text); color: #fff; }
.service-card:hover .service-name,
.service-card:hover .service-desc { color: #fff; }
.service-card:hover .service-link { color: rgba(255,255,255,0.65); }
.service-card:hover .service-link-portfolio { color: rgba(255,255,255,0.75); }

.service-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: auto; }
.service-link-portfolio {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.service-link-portfolio:hover { color: var(--color-text); }

.service-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
  transition: color 0.2s;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
  transition: color 0.2s;
  flex: 1;
}

.service-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
}

/* ============ PORTFOLIO PREVIEW ============ */
.portfolio-preview { background: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 2.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #e8e8e8;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img { transform: scale(1.04); }

.portfolio-item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: background 0.3s;
}

.portfolio-item:hover .portfolio-item-overlay { background: rgba(0,0,0,0.35); }

.portfolio-item-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}

.portfolio-item:hover .portfolio-item-label { opacity: 1; transform: translateY(0); }

/* ============ QUOTE ============ */
.quote-section {
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
  padding: 5rem 1.25rem;
}

.quote-section blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 400;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.45;
  opacity: 0.94;
}

/* ============ NYHETSBREV ============ */
.newsletter-section { background: #f5f3f0; text-align: center; }

.newsletter-form {
  display: flex;
  max-width: 420px;
  margin: 1.75rem auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0 16px;
  height: var(--touch-min);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1.5px solid var(--color-text);
  border-right: none;
  background: #fff;
  outline: none;
  min-width: 0;
}

.newsletter-form button {
  height: var(--touch-min);
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-text);
  color: #fff;
  border: 1.5px solid var(--color-text);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: #444; }
.newsletter-success { display: none; color: var(--color-text-light); margin-top: 1rem; font-size: 0.9rem; }

/* ============ FOOTER ============ */
footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 3rem 1.25rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-logo {
  height: 64px;
  width: auto;
  max-width: 180px;
  margin-bottom: 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
  filter: none;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.84rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.55);
  display: block;
  transition: color 0.2s;
  min-height: 28px;
}

.footer-col a:hover { color: rgba(255,255,255,0.95); }

.footer-social { display: flex; gap: 1rem; margin-top: 0.9rem; flex-wrap: wrap; }

.footer-social a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
}

/* ============ PORTFOLIO PAGE ============ */
.page-hero {
  padding: 3rem 1.25rem 2rem;
  text-align: center;
  background: #f5f3f0;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 400;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.filter-btn {
  padding: 0 16px;
  height: var(--touch-min);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.portfolio-masonry {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  columns: 3;
  gap: 4px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.masonry-item img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.masonry-item:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }

.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  color: #fff; font-size: 2rem; cursor: pointer;
  background: none; border: none; line-height: 1;
  opacity: 0.7; transition: opacity 0.2s;
  min-width: var(--touch-min); min-height: var(--touch-min);
  display: flex; align-items: center; justify-content: center;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 2.5rem; cursor: pointer;
  background: none; border: none;
  opacity: 0.55; transition: opacity 0.2s;
  min-width: var(--touch-min); min-height: 80px;
  display: flex; align-items: center; justify-content: center;
}

.lightbox-prev { left: 0.25rem; }
.lightbox-next { right: 0.25rem; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

/* ============ ATTESTER ============ */
.testimonials-intro {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}

/* Karusell */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 2.5rem 2rem;
  background: #f5f3f0;
  border-left: 3px solid var(--color-text);
}

@media (min-width: 700px) {
  .testimonial-card { flex: 0 0 50%; }
}

@media (min-width: 1100px) {
  .testimonial-card { flex: 0 0 33.333%; }
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 1.2rem;
}

.testimonial-author {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

.testimonial-service {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  background: none;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; transition: all 0.2s;
}

.carousel-btn:hover { border-color: var(--color-text); }

.carousel-dots { display: flex; gap: 6px; }

.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer; transition: background 0.2s;
  border: none;
}

.carousel-dot.active { background: var(--color-text); }

/* ============ KONTAKT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem;
}

.contact-info p {
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.contact-info a { color: var(--color-text); font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  margin-top: 1.5rem;
}

.contact-label:first-child { margin-top: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0 14px;
  height: var(--touch-min);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group textarea {
  height: auto;
  min-height: 130px;
  padding: 12px 14px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--color-text); }

/* ============ RESPONSIVE - TABLET ============ */
@media (max-width: 1024px) {
  .about-grid { gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .portfolio-masonry { columns: 2; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ RESPONSIVE - MOBIL ============ */
@media (max-width: 768px) {
  :root { --header-height: 62px; }

  nav { display: none; }
  .hamburger { display: flex; }

  section { padding: 3rem 1.25rem; }

  .hero { min-height: 70vh; padding: 4rem 1.25rem 3rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image { order: -1; }
  .about-image img { aspect-ratio: 3/2; }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-masonry { columns: 2; gap: 3px; padding: 0 1.25rem 3rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-logo { height: 56px; max-width: 160px; padding: 0.55rem 0.7rem; border-radius: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .newsletter-form { max-width: 100%; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-masonry { columns: 1; }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-right: 1.5px solid var(--color-text);
    border-bottom: none;
  }

  .newsletter-form button { width: 100%; }
}


/* Accessibility contrast polish */
.section-label, .portfolio-meta, .attest-filter-btn { color: #5f5f5f; }
footer .footer-bottom, footer .footer-bottom span { color: #b8b8b8; }
footer .footer-bottom .footer-admin-shortcut { color: inherit; text-decoration: none; cursor: pointer; }
footer .footer-bottom .footer-admin-shortcut:hover, footer .footer-bottom .footer-admin-shortcut:focus { color: inherit; text-decoration: none; }


/* Layout stability reservations */
#attestGrid { min-height: 1200px; }
#masonryGrid { min-height: 1800px; }
@media (min-width: 900px) { #attestGrid { min-height: 760px; } #masonryGrid { min-height: 1200px; } }



/* ============ HERMES CHATBOT ============ */
.hermes-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f0f0f;
}
.hermes-chatbot * { box-sizing: border-box; }
.hermes-chatbot__bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0,0,0,.16);
  background: #ffffff;
  color: #0f0f0f;
  border-radius: 18px;
  padding: 11px 15px 11px 11px;
  min-width: 270px;
  box-shadow: 0 18px 50px rgba(0,0,0,.16), 0 0 0 1px rgba(255,255,255,.88) inset;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hermes-chatbot__bubble:hover,
.hermes-chatbot__bubble:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.34);
  box-shadow: 0 22px 70px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.94) inset;
  outline: none;
}
.hermes-chatbot__avatar,
.hermes-chatbot__header-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f6f6f6;
  border: 1px solid rgba(0,0,0,.12);
  overflow: hidden;
  flex: 0 0 auto;
}
.hermes-chatbot__avatar img,
.hermes-chatbot__header-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}
.hermes-chatbot__bubble-text strong { display:block; font-size:.96rem; letter-spacing:-.01em; font-weight: 760; }
.hermes-chatbot__bubble-text span { display:block; font-size:.78rem; color:#4b5563; margin-top:2px; }
.hermes-chatbot__pulse {
  position:absolute;
  top: 7px;
  right: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:#10a37f;
  border:2px solid #ffffff;
  box-shadow:0 0 0 0 rgba(16,163,127,.48);
  animation: hermesPulse 1.9s infinite;
}
@keyframes hermesPulse { 70% { box-shadow:0 0 0 9px rgba(16,163,127,0); } 100% { box-shadow:0 0 0 0 rgba(16,163,127,0); } }
.hermes-chatbot__panel {
  position:absolute;
  right:0;
  bottom:76px;
  width:min(410px, calc(100vw - 28px));
  background:#ffffff;
  color:#0f0f0f;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 26px 90px rgba(0,0,0,.24);
  border:1px solid rgba(0,0,0,.14);
  transform: translateY(12px) scale(.98);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
.hermes-chatbot.is-open .hermes-chatbot__panel { opacity:1; pointer-events:auto; transform:translateY(0) scale(1); }
.hermes-chatbot__header {
  padding:16px 16px 14px;
  background:#ffffff;
  color:#0f0f0f;
  display:flex;
  gap:12px;
  align-items:center;
  border-bottom:1px solid rgba(0,0,0,.1);
}
.hermes-chatbot__header h3 { margin:0;font-size:1.02rem;letter-spacing:-.015em;font-weight:780; }
.hermes-chatbot__header p { margin:.22rem 0 0;font-size:.8rem;line-height:1.35;color:#4b5563; }
.hermes-chatbot__close { margin-left:auto;border:1px solid rgba(0,0,0,.12);background:#f7f7f8;color:#111827;border-radius:12px;width:34px;height:34px;cursor:pointer;font-size:1.18rem;line-height:1; }
.hermes-chatbot__close:hover { background:#eeeeef; }
.hermes-chatbot__messages { max-height:370px; overflow:auto; padding:16px; background:#ffffff; }
.hermes-chatbot__msg { margin:0 0 12px; display:flex; }
.hermes-chatbot__msg span { display:inline-block; padding:11px 13px; border-radius:16px; line-height:1.46; font-size:.9rem; white-space:pre-line; }
.hermes-chatbot__msg--bot span { background:#f7f7f8; color:#0f0f0f; border:1px solid rgba(0,0,0,.08); border-bottom-left-radius:5px; }
.hermes-chatbot__msg--user { justify-content:flex-end; }
.hermes-chatbot__msg--user span { background:#111111; color:#ffffff; border-bottom-right-radius:5px; }
.hermes-chatbot__links { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 12px; }
.hermes-chatbot__links a { text-decoration:none; border-radius:999px; padding:8px 11px; background:#111111; color:#ffffff; font-size:.8rem; border:1px solid #111; }
.hermes-chatbot__links a:hover { background:#2a2a2a; }
.hermes-chatbot__suggestions { display:flex; flex-wrap:wrap; gap:7px; padding:0 16px 12px; background:#ffffff; }
.hermes-chatbot__suggestions button { border:1px solid rgba(0,0,0,.14); background:#ffffff; color:#111827; border-radius:999px; padding:8px 10px; cursor:pointer; font-size:.78rem; }
.hermes-chatbot__suggestions button:hover { background:#f7f7f8; border-color:rgba(0,0,0,.28); }
.hermes-chatbot__form { display:flex; gap:8px; padding:13px; border-top:1px solid rgba(0,0,0,.1); background:#ffffff; }
.hermes-chatbot__form input { flex:1; border:1px solid rgba(0,0,0,.16); border-radius:14px; padding:12px 13px; font:inherit; min-width:0; background:#ffffff; color:#0f0f0f; }
.hermes-chatbot__form input:focus { outline:2px solid rgba(16,163,127,.18); border-color:#10a37f; }
.hermes-chatbot__form button { border:0; border-radius:14px; background:#111111; color:#ffffff; padding:0 16px; font-weight:750; cursor:pointer; }
.hermes-chatbot__form button:hover { background:#2a2a2a; }
.hermes-chatbot__fineprint { padding:0 16px 14px; font-size:.72rem; color:#6b7280; background:#ffffff; }
@media (max-width: 560px) {
  .hermes-chatbot { right:14px; bottom:74px; left:auto; }
  .hermes-chatbot__bubble { width:56px; min-width:56px; height:56px; justify-content:center; border-radius:999px; padding:6px; box-shadow:0 12px 30px rgba(0,0,0,.18); }
  .hermes-chatbot__bubble-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .hermes-chatbot__avatar { width:42px; height:42px; border-radius:999px; }
  .hermes-chatbot__pulse { top:5px; right:5px; }
  .hermes-chatbot__panel { position:fixed; left:10px; right:10px; width:auto; bottom:142px; border-radius:20px; }
  .hermes-chatbot__messages { max-height:min(330px, 44vh); }
}
.hermes-chatbot.is-open .hermes-chatbot__bubble { transform:translateY(-1px); }
