/* JC Lawyers concept: improvement layer (loaded after the Astro build CSS). */
:root {
  --jc-ink: #2d2640;        /* deep brand purple (existing primary-900) */
  --jc-brand: #7866a0;      /* purple of the JC diamond in the real logo */
  --jc-purple: #6a5894;     /* brand purple, darkened for AA text/buttons on white */
  --jc-lilac: #b5a8d2;      /* lilac accent for dark backgrounds */
  --jc-silver: #c4c5c6;     /* logo grey */
  /* replace the demo's gold accent with the brand lilac */
  --color-accent-300: #d9cff0;
  --color-accent-400: #b5a8d2;
  --color-accent-500: #6a5894;
  --color-accent-600: #5f4f8a;
}
html { scroll-behavior: auto; }
body { color: #2d2640; }

/* Accent text on light sections uses the darker brand purple (AA on white / #f4f0f8) */
main section.bg-white, main section.bg-primary-50, main section.py-24:not([style]) { --color-accent-400: #6a5894; }
/* ...but restore lilac inside dark cards and image overlays within those sections */
main a.group, main .bg-primary-900, main [style*="2D2640"], main [style*="2d2640"] { --color-accent-400: #b5a8d2; }

.jc-lilac { color: var(--jc-lilac); }

/* Buttons: brand purple on light, white on dark (as the real site does) */
.btn-gold { background: var(--jc-purple); color: #fff; }
.btn-gold:before { background: linear-gradient(90deg, #5f4f8a, #7866a0); }
.btn-gold:hover { box-shadow: 0 8px 22px rgba(106, 88, 148, .35); }
header .btn-gold, main > section:first-child .btn-gold, section.diagonal-top .btn-gold, main section[style*="2D2640"] .btn-gold, main section[style*="2d2640"] .btn-gold, footer .btn-gold {
  background: #fff; color: var(--jc-ink);
}
header .btn-gold:before, main > section:first-child .btn-gold:before, section.diagonal-top .btn-gold:before, main section[style*="2D2640"] .btn-gold:before { background: linear-gradient(90deg, #ece6f6, #fff); }
.btn-gold:focus-visible, .jc-btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--jc-lilac); outline-offset: 3px;
}
main section.bg-white a:focus-visible, main section.py-24:not([style]) a:focus-visible, main section.bg-primary-50 a:focus-visible { outline-color: var(--jc-purple); }

.nav-link:after { background: var(--jc-lilac); }
.gold-divider { background: linear-gradient(90deg, var(--jc-brand), var(--jc-lilac)); }
.pull-quote { border-left-color: var(--jc-brand); }
.text-white\/60 { color: rgba(255, 255, 255, .72); }

/* Shared button shapes */
.jc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; font-family: var(--font-sans); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.jc-btn-lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.05rem; }
.jc-btn-ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .45); background: transparent; }
.jc-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.jc-actions { display: flex; flex-direction: column; gap: .75rem; }
.jc-actions-inner { margin-top: 2rem; }
.jc-actions-center { justify-content: center; }
.jc-btn-outline { color: var(--jc-ink); border: 2px solid var(--jc-purple); background: #fff; }
.jc-btn-outline:hover { background: var(--jc-purple); color: #fff; }
@media (min-width: 640px) { .jc-actions { flex-direction: row; flex-wrap: wrap; } }

/* Header: Call + Enquire always visible */
.hdr-call { display: inline-flex; align-items: center; gap: .5rem; margin-left: 1rem; min-height: 44px; padding: 0 .75rem; color: #fff; font-family: var(--font-sans); font-size: .875rem; font-weight: 600; border-radius: 999px; }
.hdr-call:hover { color: var(--jc-lilac); }
.hdr-call-word { display: none; }
.hdr-enquire { display: inline-flex; align-items: center; min-height: 44px; margin-left: .5rem; padding: 0 1.4rem; border-radius: 999px; font-size: .875rem; }
@media (max-width: 1099px) { .hdr-call-num { display: none; } .hdr-call-word { display: inline; } .hdr-call { margin-left: .5rem; } }
@media (min-width: 768px) and (max-width: 900px) { header nav .nav-link { padding-left: .6rem; padding-right: .6rem; } }
.hdr-mobile { display: flex; align-items: center; gap: .5rem; }
.hdr-m-call, .hdr-m-enquire { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; padding: 0 .85rem; border-radius: 999px; font-family: var(--font-sans); font-size: .875rem; font-weight: 700; }
.hdr-m-call { color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.hdr-m-enquire { background: #fff; color: var(--jc-ink); }
.hdr-m-menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; background: none; border: 0; cursor: pointer; }
@media (min-width: 768px) { .hdr-mobile { display: none; } }
@media (max-width: 380px) { .hdr-m-call span { display: none; } .hdr-m-call { padding: 0 .7rem; } }
#mobile-menu a { min-height: 44px; display: flex; align-items: center; }
#mobile-menu a.btn-gold { justify-content: center; }

/* Home hero */
.jc-hero-h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.jc-hero-sub { margin-bottom: 2rem; }
.jc-hero-note { margin-top: 1rem; color: rgba(255, 255, 255, .75); font-family: var(--font-sans); font-size: .875rem; }
@media (max-width: 767px) {
  main > section:first-child p.uppercase { letter-spacing: .12em; font-size: .72rem; }
  main > section:first-child .pt-24 { padding-top: 2.5rem; }
  .jc-hero-sub { font-size: 1.05rem; margin-bottom: 1.5rem; }
}

/* Marquee: pause on hover, stop for reduced motion */
.jc-marquee:hover .marquee-track { animation-play-state: paused; }

/* Contact form */
.jc-form-note { margin: 0 0 1.25rem; padding: .85rem 1rem; border: 1px solid #d4cce6; border-left: 4px solid var(--jc-purple); border-radius: .5rem; background: #f4f0f8; font-family: var(--font-sans); font-size: .9rem; line-height: 1.55; color: #2d2640; }
.jc-form-note a, .jc-form-result a, .jc-inline-link { color: var(--jc-purple); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.jc-form-result { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: .75rem; background: #2d2640; color: #fff; font-family: var(--font-sans); font-size: .95rem; line-height: 1.55; }
.jc-form-result a { color: #d9cff0; }
.form-input:focus { border-color: var(--jc-purple); box-shadow: 0 0 0 3px rgba(106, 88, 148, .2); }

/* FAQ summaries: comfortable tap targets */
details summary { min-height: 56px; }

/* Footer */
footer ul { row-gap: 0; }
footer ul.space-y-3 > li + li { margin-top: 0; }
footer ul a, main a.text-accent-500 { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
main .rounded-2xl ul a[href^="tel:"], main .rounded-2xl ul a[href^="mailto:"] { display: inline-block; padding: .75rem 0; margin: -.75rem 0; }
main .rounded-2xl ul a.mt-1 { margin-top: calc(.25rem - .75rem); }
footer ul.space-y-4 > li + li { margin-top: .25rem; }
footer .vd-credit, footer .vd-disclosure { font-size: .75rem; color: rgba(255, 255, 255, .55); }
footer .vd-credit a, footer .vd-disclosure a { color: rgba(255, 255, 255, .75); text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: .55rem 0; }
footer .vd-disclosure { margin-top: .75rem; text-align: center; }
@media (min-width: 640px) { footer .vd-disclosure { text-align: left; } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; white-space: normal; }
  .hero-animate, .reveal, .reveal-left, .reveal-right, .reveal-scale { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn-gold, .jc-btn, .card-lift { transition: none !important; transform: none !important; }
}
