:root {
  --ink: #07111f;
  --ink-2: #0c1d32;
  --gold: #d7b56d;
  --gold-2: #f0d99b;
  --cream: #f7f2e8;
  --paper: #fffaf0;
  --muted: #6b7280;
  --line: rgba(7, 17, 31, 0.12);
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(7, 17, 31, 0.18);
  --radius: 28px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);
  --focus-ring: 0 0 0 3px rgba(215, 181, 109, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: auto; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; overflow-wrap: break-word; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 110px 0; position: relative; }
.section-dark { background: radial-gradient(circle at 20% 20%, rgba(215,181,109,.18), transparent 30%), linear-gradient(135deg, #06101e 0%, #10213a 55%, #07111f 100%); color: var(--white); }
.hero.section-dark:has(.orb),
.hero.section-dark:has(.grid-lines) { overflow: hidden; }
.section-soft { background: #fff7e8; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold-2);
  color: var(--ink);
  font-weight: 800;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: none;
  box-shadow: var(--focus-ring);
}

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; transition: .25s ease; }
.site-header.is-scrolled { background: rgba(7, 17, 31, .82); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 82px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark, .monogram { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--ink); font-weight: 900; letter-spacing: .04em; }
.brand strong { display: block; line-height: 1; font-size: 1rem; }
.brand small { display: block; color: rgba(255,255,255,.7); font-size: .78rem; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: rgba(255,255,255,.76); font-size: .95rem; }
.nav-links a { border-radius: 999px; padding: 6px 10px; transition: color .2s ease, background .2s ease; }
.nav-links a:hover { color: var(--white); }
.nav-links a.is-active { color: var(--white); background: rgba(255,255,255,.1); }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(255,255,255,.2); }
.nav-cta.is-active { background: rgba(215,181,109,.18); border-color: rgba(215,181,109,.35); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; border-radius: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px; }

.hero { min-height: 100vh; padding-top: 160px; padding-bottom: 70px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .74fr; gap: 70px; align-items: center; }
.eyebrow, .section-label { color: var(--gold-2); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .78rem; font-family: var(--font-sans); }
.hero h1 { font-size: clamp(3rem, 7vw, 6.7rem); line-height: 1.05; letter-spacing: normal; margin: 18px 0 28px; max-width: 850px; text-wrap: balance; }
.hero-text { font-size: 1.18rem; color: rgba(255,255,255,.78); max-width: 710px; }
.hero-geo { margin: 0 0 10px; color: rgba(255,255,255,.9); font-weight: 700; }
.hero-keywords { margin: 0 0 8px; color: rgba(255,255,255,.55); font-size: .92rem; letter-spacing: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 800; transition: .2s ease; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }
.button-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--ink); box-shadow: 0 18px 50px rgba(215,181,109,.22); }
.button-primary:hover { transform: translateY(-2px); }
.button-ghost { border: 1px solid rgba(255,255,255,.22); color: white; background: transparent; }
.button-inline { width: 100%; }
.button:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.hero-panel { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.signature-card { display: flex; gap: 16px; align-items: center; }
.signature-card p { margin: 0; font-weight: 900; font-family: var(--font-sans); }
.signature-card span, .credential-list, .panel-kicker { color: rgba(255,255,255,.72); }
.panel-divider { height: 1px; background: rgba(255,255,255,.13); margin: 26px 0; }
.overlap-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.overlap-map span { padding: 14px; border-radius: 18px; background: rgba(215,181,109,.12); border: 1px solid rgba(215,181,109,.22); font-weight: 800; }
.credential-list { padding-left: 20px; margin-bottom: 0; }
.credential-list li { margin: 7px 0; }
.credibility-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px; background: rgba(255,255,255,.1); border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.credibility-row div { padding: 24px; background: rgba(255,255,255,.055); }
.credibility-row strong { display: block; margin-bottom: 8px; font-family: var(--font-sans); }
.credibility-row span { color: rgba(255,255,255,.66); font-size: .93rem; }
.grid-lines { position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 80px 80px; opacity:.35; }
.orb { position:absolute; width: 360px; height:360px; border-radius:50%; filter: blur(30px); opacity:.25; }
.orb-one { background: var(--gold); top: 10%; right: 10%; }
.orb-two { background: #78a6ff; bottom: 10%; left: 0; }
.hero .container, .section-dark .container { position: relative; z-index: 2; }

.split-layout, .proof-layout, .fit-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.sticky-intro { position: sticky; top: 120px; }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.12; letter-spacing: normal; margin: 12px 0 22px; text-wrap: balance; }
.section-intro p:not(.section-label), .section-heading p:not(.section-label) { color: var(--muted); font-size: 1.06rem; }
.feature-stack { display: grid; gap: 20px; }
.feature-card, .service-card, .process-card, .fit-card, .quote-card, .contact-panel, .case-card, .landing-card { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 18px 55px rgba(7,17,31,.08); }
.feature-icon { color: var(--gold); font-weight: 900; letter-spacing: .12em; font-family: var(--font-sans); }
h3 { font-size: 1.35rem; margin: 14px 0 10px; line-height: 1.2; }
.feature-card p, .service-card p, .process-card p, .timeline p, .fit-card p, .contact-panel p, .case-card p, .landing-card p { color: var(--muted); }
.section-heading { max-width: 820px; margin-bottom: 42px; }
.centered { text-align: center; margin-inline: auto; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card { min-height: 260px; display: flex; flex-direction: column; }
.service-card.large { grid-column: span 1; }
.card-topline { display: flex; justify-content: space-between; color: var(--gold); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-family: var(--font-sans); }
.service-card ul { margin-top: auto; padding-left: 20px; color: var(--ink-2); }
.card-link { display: inline-block; margin-top: 18px; color: var(--ink-2); font-weight: 800; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.timeline { border-left: 1px solid rgba(255,255,255,.18); padding-left: 28px; }
.timeline article { display: grid; grid-template-columns: 18px 1fr; gap: 18px; margin: 0 0 28px -38px; }
.timeline article > span { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); margin-top: 8px; box-shadow: 0 0 0 8px rgba(215,181,109,.12); }
.timeline h3 { color: white; }
.timeline p { color: rgba(255,255,255,.68); margin-top: 0; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 50px; }
.case-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.case-sector { display: inline-block; margin-bottom: 8px; color: var(--gold-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-family: var(--font-sans); }
.case-card h3 { color: white; margin-top: 0; }
.case-card p { color: rgba(255,255,255,.68); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-card span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold-2); font-weight: 900; font-family: var(--font-sans); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag-cloud span { padding: 10px 14px; border-radius: 999px; background: white; border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); }
.quote-card { background: var(--ink); color: white; min-height: 330px; display: flex; flex-direction: column; justify-content: center; }
.quote-card p { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; color: white; }
.quote-card span { color: rgba(255,255,255,.68); }
.principal-list { margin: 18px 0; padding-left: 1.2rem; color: var(--muted); }
.principal-list li { margin-bottom: 8px; }
.contact-panel { display: grid; grid-template-columns: 1fr .9fr; gap: 42px; align-items: start; background: var(--ink); color: white; }
.contact-panel p { color: rgba(255,255,255,.68); }
.contact-box { display: grid; gap: 12px; }
.contact-line { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 16px 18px; border-radius: 16px; color: white; }
.enquiry-checklist { margin-top: 24px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.enquiry-checklist p { margin: 0 0 10px; color: rgba(255,255,255,.85); }
.enquiry-checklist ul { margin: 0; padding-left: 20px; color: rgba(255,255,255,.68); }
.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; color: rgba(255,255,255,.78); font-size: .92rem; font-weight: 700; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: white;
  font: inherit;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form option { color: var(--ink); }
.hidden { position: absolute; left: -9999px; }
.footer { background: #050b14; color: rgba(255,255,255,.72); padding: 34px 0 24px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: white; }
.footer-copy { margin: 0; }
.footer-brand small { color: rgba(255,255,255,.55); }
.footer-disclaimer { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: rgba(255,255,255,.55); }
.footer-disclaimer p { margin: 0 0 8px; }

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(7, 17, 31, .94);
  border-top: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .button { width: 100%; }

.landing-hero { min-height: auto; padding-top: 150px; padding-bottom: 80px; overflow: visible; }
.landing-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  max-width: 100%;
  line-height: 1.15;
  letter-spacing: normal;
  text-wrap: balance;
}
.landing-hero .hero-text { max-width: 100%; overflow-wrap: anywhere; }
.landing-content { padding-top: 0; margin-top: 0; overflow: visible; }
.landing-content p,
.resource-intro p,
.resource-block p,
.resource-list a {
  overflow-wrap: anywhere;
}
.landing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.landing-card h3 { margin-top: 0; }
.landing-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.breadcrumb { color: rgba(255,255,255,.6); font-size: .92rem; margin-bottom: 18px; }
.breadcrumb a:hover { color: white; }

.resources-layout { display: grid; gap: 20px; max-width: 100%; }
.resource-intro h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: normal;
  text-wrap: balance;
  max-width: 100%;
}
.section:not(.section-dark) .section-label { color: var(--muted); }
.resource-intro p { color: var(--muted); }
.resource-intro-spaced { margin-top: 28px; padding-top: 12px; }
.resource-block {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 0 18px 55px rgba(7,17,31,.08);
}
.resource-block h3 { margin: 0 0 16px; font-size: 1.15rem; }
.resource-block-wide { grid-column: 1 / -1; }
.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.resource-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.resource-list a::after {
  content: "↗";
  flex-shrink: 0;
  font-size: .82rem;
  color: var(--gold);
  margin-top: .15em;
}
.resource-list a:hover { color: var(--gold-2); }
.resource-list-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.resource-note { font-size: .92rem; margin-top: 14px; }
.resource-note a { font-weight: 700; }
.resource-disclaimer {
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(7,17,31,.04);
  border: 1px solid var(--line);
}
.resource-disclaimer p { margin: 0; color: var(--muted); font-size: .92rem; }
.section .breadcrumb { color: var(--muted); }
.section .breadcrumb a:hover { color: var(--ink); }

.nav-links--compact { gap: 16px; font-size: .88rem; }
.landing-prose { max-width: 760px; margin-bottom: 48px; }
.landing-prose h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 36px; }
.landing-prose p, .landing-prose li { color: var(--muted); font-size: 1.05rem; }
.landing-prose ul, .landing-prose ol { padding-left: 1.25rem; }
.landing-prose a { color: var(--ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.numbered-list li { margin-bottom: 12px; }
.prep-list li { margin-bottom: 8px; }

.faq-section { margin-top: 56px; max-width: 820px; }
.faq-section h2 { margin-bottom: 20px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 4px 18px; }
.faq-list summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { color: var(--ink-2); }
.faq-list p { margin: 0 0 16px; color: var(--muted); }
.faq-list a { color: var(--ink-2); font-weight: 700; }

.related-links { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.related-links h2 { font-size: 1.5rem; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-grid a { padding: 16px 18px; border-radius: 16px; background: white; border: 1px solid var(--line); font-weight: 800; color: var(--ink-2); }
.related-grid a:hover { border-color: var(--gold); }

.insights-grid { display: grid; gap: 20px; margin-top: 36px; max-width: 820px; }
.insight-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 18px 55px rgba(7,17,31,.06); }
.insight-meta { color: var(--gold); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; margin: 0 0 10px; }
.insight-card h2 { font-size: 1.6rem; margin: 0 0 12px; line-height: 1.15; }
.insight-card h2 a:hover { color: var(--ink-2); }

.article-section { padding-top: 130px; }
.article-prose { max-width: 720px; }
.article-prose h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; margin: 12px 0 20px; }
.article-lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 32px; }
.article-prose h2 { font-size: 1.5rem; margin-top: 36px; margin-bottom: 12px; }
.article-prose p { color: var(--muted); }
.article-prose a { color: var(--ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-cta-secondary { border-color: var(--line) !important; color: var(--ink) !important; }

.case-card .case-link { display: inline-block; margin-top: 14px; color: var(--gold-2); font-weight: 800; font-size: .9rem; }
.case-card .case-link:hover { color: white; }
.timeline .timeline-link { display: inline-block; margin-top: 10px; color: var(--gold-2); font-weight: 800; font-size: .9rem; }
.timeline .timeline-link:hover { color: white; }

.insights-preview { margin-top: 36px; display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.insight-preview-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; }
.insight-preview-card h3 { color: white; margin-top: 0; }
.insight-preview-card p { color: rgba(255,255,255,.68); }
.insight-preview-card a { color: var(--gold-2); font-weight: 800; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; } .delay-2 { transition-delay: .22s; } .delay-3 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button-primary:hover { transform: none; }
  .mobile-cta { transition: none; }
  .chat-toggle-pulse { animation: none; opacity: 0; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(7,17,31,.96);
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.is-open { display: flex; }
  .hero-grid, .split-layout, .proof-layout, .fit-grid, .contact-panel, .landing-grid, .resource-list-columns { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .related-grid { grid-template-columns: 1fr; }
  .credibility-row, .process-grid, .case-grid, .insights-preview { grid-template-columns: 1fr; }
  .nav-links--compact { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .sticky-intro { position: static; }
  .section { padding: 76px 0; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  body.has-mobile-cta { padding-bottom: 84px; }
}

@media (min-width: 901px) {
  .mobile-cta { display: none !important; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .hero h1 { font-size: 3rem; }
  .brand small { display: none; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-panel, .feature-card, .service-card, .process-card, .fit-card, .quote-card, .contact-panel, .case-card, .landing-card { padding: 22px; border-radius: 22px; }
}

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

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483646;
  font-size: 0.95rem;
  pointer-events: none;
}

.chat-widget > * {
  pointer-events: auto;
}

body.has-mobile-cta .chat-widget { bottom: 96px; }

.chat-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(215, 181, 109, 0.45), 0 8px 24px rgba(7, 17, 31, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-toggle-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(215, 181, 109, 0.55);
  animation: chat-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.chat-widget.is-open .chat-toggle-pulse {
  display: none;
}

@keyframes chat-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

.chat-toggle:hover { transform: translateY(-2px); }

.chat-toggle-icon--close { display: none; }
.chat-toggle[aria-expanded="true"] .chat-toggle-icon--open { display: none; }
.chat-toggle[aria-expanded="true"] .chat-toggle-icon--close { display: block; }
.chat-toggle[aria-expanded="true"] .chat-toggle-label { display: none; }

.chat-panel[hidden],
.chat-contact-form[hidden] {
  display: none !important;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(400px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--white);
}

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

.chat-header strong {
  display: block;
  line-height: 1.2;
  font-size: 0.95rem;
}

.chat-header small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  margin-top: 2px;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink);
  font-weight: 900;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.chat-message {
  display: flex;
  max-width: 88%;
}

.chat-message--bot { align-self: flex-start; }
.chat-message--user { align-self: flex-end; }

.chat-bubble {
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-message--bot .chat-bubble {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-bottom-left-radius: 6px;
}

.chat-message--user .chat-bubble {
  background: var(--ink);
  color: var(--white);
  border-bottom-right-radius: 6px;
}

.chat-bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 52px;
  min-height: 40px;
}

.chat-bubble--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: chat-typing 1.2s infinite ease-in-out;
}

.chat-bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.chat-quick-reply {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.chat-quick-reply:hover {
  border-color: var(--gold);
  background: #fffdf8;
}

.chat-contact-form {
  padding: 0 16px 12px;
  display: grid;
  gap: 10px;
}

.chat-contact-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.chat-contact-form label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
}

.chat-contact-form input,
.chat-contact-form textarea,
.chat-contact-form select,
.chat-input-bar input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}

.chat-contact-form input:focus,
.chat-contact-form textarea:focus,
.chat-contact-form select:focus,
.chat-input-bar input:focus {
  outline: 2px solid rgba(215, 181, 109, 0.45);
  border-color: var(--gold);
}

.chat-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-contact-actions .button {
  min-height: 42px;
  font-size: 0.88rem;
}

.chat-cancel-enquiry {
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: white;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.chat-send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.chat-send:hover { background: var(--ink-2); }

@media (max-width: 560px) {
  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  body.has-mobile-cta .chat-widget { bottom: 90px; }

  .chat-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 100px);
  }

  .chat-toggle-label { display: none; }
  .chat-toggle {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
}
