/* --------------------------------------------------------------------------
   Stillness & Flow — calm palette, tea + forest undertones
   -------------------------------------------------------------------------- */
:root {
  --ink: #1c2420;
  --ink-soft: #3d4a42;
  --cream: #f7f4ee;
  --cream-dark: #ebe6dc;
  --sage: #6b8f7a;
  --sage-deep: #4a6b5a;
  --mist: #e8efe9;
  --gold: #b8956c;
  --white: #fdfcfa;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(28, 36, 32, 0.08);
  --max: 1100px;
  --narrow: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--sage-deep);
  color: var(--white);
  z-index: 100;
  border-radius: 4px;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: var(--space-sm);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 var(--space-md);
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--sage-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 107, 90, 0.1);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--sage-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--sage-deep);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--white) !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 88vw);
    background: var(--cream);
    padding: 5rem var(--space-lg) var(--space-lg);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  body.nav-open {
    overflow: hidden;
  }
}

body.contact-modal-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(107, 143, 122, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(184, 149, 108, 0.12), transparent 50%),
    linear-gradient(165deg, var(--mist) 0%, var(--cream) 45%, var(--cream-dark) 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a6b5a' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.hero-content {
  max-width: 640px;
  min-width: 0;
}

.hero-visual {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: min(52vw, 420px);
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 640px;
}

@media (min-width: 901px) {
  .hero-visual {
    max-width: none;
    min-height: min(34vw, 420px);
    justify-content: flex-end;
  }
}

.hero-photo {
  margin: 0;
  flex: 0 1 clamp(100px, 22vw, 190px);
  align-self: center;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(28, 36, 32, 0.15);
  transition:
    margin 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-photo:hover {
  box-shadow: 0 22px 52px rgba(28, 36, 32, 0.22);
}

.hero-zoom-trigger {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: inherit;
  cursor: zoom-in;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.hero-zoom-trigger:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

.hero-zoom-trigger img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Hover “peek” zoom — origin follows pointer via JS */
@media (hover: hover) and (pointer: fine) {
  .hero-zoom-trigger:hover img,
  .hero-zoom-trigger:focus-visible img {
    transform: scale(1.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-zoom-trigger img {
    transition: transform 0.2s ease;
  }

  .hero-zoom-trigger:hover img,
  .hero-zoom-trigger:focus-visible img {
    transform: scale(1.03);
  }
}

/* Touch / coarse pointers: light press feedback */
@media (hover: none), (pointer: coarse) {
  .hero-zoom-trigger:active img {
    transform: scale(1.06);
    transition-duration: 0.15s;
  }
}

/* Landscape Gongfu tea — leftmost hero frame */
.hero-photo--tea {
  position: relative;
  z-index: 3;
  flex-basis: clamp(110px, 24vw, 210px);
  margin-left: 0;
}

.hero-photo--tea .hero-zoom-trigger img {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.hero-photo--kids {
  position: relative;
  z-index: 2;
  margin-left: clamp(0.5rem, 1.5vw, 1rem);
}

.hero-photo--seniors {
  position: relative;
  z-index: 1;
  margin-left: clamp(0.5rem, 1.5vw, 1rem);
}

@media (max-width: 900px) {
  .hero-photo {
    flex: 0 1 clamp(95px, 28vw, 170px);
  }

  .hero-photo--tea {
    flex-basis: clamp(100px, 30vw, 180px);
  }

  .hero-photo--kids,
  .hero-photo--seniors {
    margin-left: clamp(-3.75rem, -16vw, -1rem);
  }
}

@media (max-width: 480px) {
  .hero-visual {
    min-height: min(50vw, 300px);
    max-width: 100%;
  }

  .hero-photo {
    flex-basis: clamp(78px, 30vw, 130px);
  }

  .hero-photo--tea {
    flex-basis: clamp(82px, 32vw, 140px);
  }

  .hero-photo--kids,
  .hero-photo--seniors {
    margin-left: clamp(-3.25rem, -20vw, -1.25rem);
  }
}

/* Hero image lightbox (zoom + pan) */
.hero-lightbox {
  padding: 0;
  border: none;
  width: min(96vw, 1100px);
  max-width: 96vw;
  max-height: min(92vh, 880px);
  margin: auto;
  background: #1c1c1c;
  color: #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hero-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.hero-lightbox-inner {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 880px);
}

.hero-lightbox-title-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hero-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.65rem 3rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-lightbox-tool {
  min-width: 40px;
  height: 40px;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-lightbox-tool:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-lightbox-tool--text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-lightbox-zoom-pct {
  min-width: 3.25rem;
  text-align: center;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.75);
}

.hero-lightbox-viewport {
  position: relative;
  flex: 1;
  min-height: min(55vh, 520px);
  max-height: min(calc(92vh - 140px), 720px);
  overflow: auto;
  overscroll-behavior: contain;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.hero-lightbox-viewport.is-panning {
  cursor: grabbing;
  user-select: none;
}

.hero-lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
}

.hero-lightbox-hint {
  flex-shrink: 0;
  margin: 0;
  padding: 0.5rem 1rem 0.75rem;
  font-size: 0.72rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.hero-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo {
    transition: none;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 var(--space-sm);
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.85);
}

.hero-lede {
  font-size: 1.125rem;
  max-width: 52ch;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--sage-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 36, 32, 0.2);
}

.btn-ghost:hover {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}

/* Sections */
.section {
  padding: var(--space-2xl) var(--space-md);
}

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

.section-inner.narrow {
  max-width: var(--narrow);
}

.section-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto var(--space-xl);
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
}

.about {
  position: relative;
  background-color: var(--cream);
  background-image:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(247, 244, 238, 0.82) 45%,
      rgba(242, 238, 230, 0.86) 100%
    ),
    url("../src/images/QingCheng_Mountain.png");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

@media (min-width: 900px) {
  .about {
    background-position: center center;
  }
}

.about-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.about-header h2 {
  margin-bottom: 0;
  color: var(--ink);
}

.about .eyebrow {
  color: var(--sage-deep);
}

.about-body {
  max-width: 40rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-bio p,
.about-teaching p {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0 0 var(--space-md);
}

.about-teaching p {
  margin-bottom: var(--space-md);
}

.about-bio p:last-child,
.about-teaching p:last-child {
  margin-bottom: 0;
}

.about-rule {
  border: none;
  border-top: 1px solid rgba(74, 107, 90, 0.2);
  width: min(100%, 5.5rem);
  margin: var(--space-xl) auto;
}

.about-teaching {
  padding-bottom: 0.25rem;
}

.about-teaching p:first-child {
  font-size: 1.125rem;
  color: var(--ink);
}

/* Cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--space-lg);
  border: 1px solid rgba(74, 107, 90, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 143, 122, 0.35);
}

.card-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--sage);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.card p {
  font-size: 0.98rem;
}

/* Tea */
.tea {
  padding: 0 var(--space-md) var(--space-2xl);
  background: transparent;
}

.tea-panel {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .tea-panel {
    grid-template-columns: 1fr;
  }
}

.tea-content {
  background: linear-gradient(145deg, var(--sage-deep) 0%, #2d4538 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: var(--space-xl) var(--space-lg);
}

.tea-content h2 {
  color: var(--white);
}

.tea-lede {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
}

.tea-lede em {
  font-style: italic;
  color: var(--gold);
}

.tea-list {
  margin: var(--space-md) 0 0;
  padding-left: 1.2rem;
}

.tea-list li {
  margin-bottom: var(--space-sm);
  padding-left: 0.25rem;
}

.tea-aside {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.tea-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  text-align: center;
}

.tea-quote p {
  margin: 0;
}

/* Audience */
.audience {
  background: var(--mist);
  text-align: center;
}

.audience p {
  font-size: 1.08rem;
  max-width: var(--narrow);
  margin-left: auto;
  margin-right: auto;
}

/* Events — flyer */
.events {
  background: var(--mist);
  text-align: center;
}

.events-inner {
  max-width: 560px;
  margin: 0 auto;
}

.events-header {
  margin-bottom: var(--space-lg);
}

.events-header h2 {
  margin-bottom: var(--space-sm);
}

.events-intro {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 36ch;
  line-height: 1.55;
}

.events-flyer {
  margin: 0 auto var(--space-lg);
  max-width: min(440px, 100%);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28, 36, 32, 0.12);
  border: 1px solid rgba(74, 107, 90, 0.12);
  background: var(--white);
}

.events-flyer img {
  display: block;
  width: 100%;
  height: auto;
}

.events-cta {
  margin: 0;
}

/* What we offer — groups & venues */
.partners {
  background: var(--white);
  text-align: center;
}

.partners-inner h2 {
  margin-bottom: var(--space-md);
}

.partners-lede {
  font-size: 1.1rem;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 auto var(--space-md);
}

.partners-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.partners-note {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 auto var(--space-lg);
}

.partners-note strong {
  color: var(--ink);
  font-weight: 600;
}

.partners-cta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
}

.partners-cta-text {
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* On-page Contact Us (dark section, classic form) */
.contact-page {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.contact-page-inner {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.contact-page h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 var(--space-md);
  letter-spacing: 0.02em;
}

.contact-page-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  width: 120px;
  margin: 0 auto var(--space-md);
}

.contact-page-kicker {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 var(--space-xl);
}

.contact-page-form {
  text-align: left;
}

.contact-page-field {
  display: block;
  margin-bottom: var(--space-md);
}

.contact-page-field input,
.contact-page-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page-field input::placeholder,
.contact-page-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-page-field input:focus,
.contact-page-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.contact-page-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.contact-page-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;
}

.contact-page-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-lg);
  cursor: pointer;
  text-align: left;
}

.contact-page-checkbox input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold);
}

.contact-page-submit {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto var(--space-md);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-page-submit:hover {
  background: transparent;
  color: var(--white);
}

.contact-recaptcha--page {
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin: 0;
}

.contact-recaptcha--page a {
  color: rgba(255, 255, 255, 0.65);
}

.contact-recaptcha--page a:hover {
  color: var(--gold);
}

.contact-page-status {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-page-status.is-error {
  color: #f0b0a8;
}

/* Floating chat launcher (opens popup widget) */
.contact-fab {
  position: fixed;
  z-index: 40;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4a4a4a;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-fab:hover {
  background: #3a3a3a;
  transform: scale(1.04);
}

.contact-fab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.contact-fab-icon {
  width: 28px;
  height: 28px;
  display: block;
}

body.contact-modal-open .contact-fab {
  opacity: 0.35;
  pointer-events: none;
}

/* Contact modal — chat widget (docked bottom-right like a live chat) */
.contact-modal {
  position: fixed;
  top: auto;
  left: auto;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  margin: 0;
  padding: 0;
  border: none;
  width: min(22rem, calc(100vw - 2rem));
  max-width: min(22rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.contact-modal::backdrop {
  background: rgba(40, 40, 40, 0.55);
  backdrop-filter: blur(6px);
}

.contact-chat-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
}
.contact-chat-panel {
  width: 100%;
  max-width: 22rem;
  border-radius: 14px;
  overflow: hidden;
  background: #e8e8e8;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  max-height: min(90vh, 640px);
  display: flex;
  flex-direction: column;
}

.contact-chat-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 0.4rem;
  background: #7a7a7a;
  color: #fff;
}

.contact-chat-header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.contact-chat-header-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.contact-chat-header-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.contact-chat-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.contact-chat-head-text {
  text-align: center;
  min-width: 0;
}
.contact-chat-head-text h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.2rem;
  letter-spacing: 0.01em;
}
.contact-chat-subtitle {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.35;
}

.contact-chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.9rem 0.75rem;
  background: #ececec;
}

.contact-chat-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.contact-chat-row--in {
  align-items: flex-start;
}
.contact-chat-row--in:last-child {
  margin-bottom: 0;
}

.contact-chat-avatar {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #4a9d6a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.contact-chat-thread {
  flex: 1;
  min-width: 0;
}

.contact-chat-bubble {
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.contact-chat-bubble--in {
  background: #fff;
  color: #333;
}
.contact-chat-bubble--in p {
  margin: 0 0 0.65rem;
}
.contact-chat-bubble--in p:last-child {
  margin-bottom: 0;
}

.contact-chat-quick {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.55rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  background: #7a7a7a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.contact-chat-quick:hover {
  background: #656565;
}
.contact-chat-quick:focus-visible {
  outline: 2px solid #4a9d6a;
  outline-offset: 2px;
}
.contact-chat-quick.is-hidden {
  display: none;
}

.contact-chat-foot {
  font-size: 0.65rem;
  color: #777;
  margin: 0.35rem 0 0;
  padding-left: 0.25rem;
}
.contact-chat-foot--out {
  text-align: right;
  padding-right: 0.25rem;
  padding-left: 0;
}

.contact-chat-row--out {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.contact-chat-bubble--out {
  background: #8a8a8a;
  color: #fff;
  max-width: 88%;
}
.contact-chat-bubble--out p {
  margin: 0;
}

.contact-chat-dynamic {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-chat-form {
  flex-shrink: 0;
  background: #e0e0e0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0.65rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-chat-fields-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.contact-chat-mini-input {
  width: 100%;
  padding: 0.45rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #333;
}
.contact-chat-mini-input::placeholder {
  color: #888;
}
.contact-chat-mini-input:focus {
  outline: none;
  border-color: #7a7a7a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.contact-chat-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.65rem;
  line-height: 1.35;
  color: #555;
  cursor: pointer;
  margin: 0;
}
.contact-chat-checkbox input {
  margin-top: 0.1rem;
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  accent-color: #4a9d6a;
}

.contact-chat-composer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #e8e8e8;
  border-radius: 10px;
  padding: 0.65rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-chat-textarea {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #333;
  resize: none;
  line-height: 1.45;
  min-height: 2.6rem;
}
.contact-chat-textarea::placeholder {
  color: #888;
}
.contact-chat-textarea:focus {
  outline: none;
}

.contact-chat-composer-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.contact-chat-attach {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #8a8a8a;
  cursor: not-allowed;
  border-radius: 6px;
  opacity: 0.75;
}

.contact-chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #7a7a7a;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.contact-chat-send:hover:not(:disabled) {
  background: #656565;
}
.contact-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-recaptcha--chat {
  font-size: 0.58rem;
  line-height: 1.45;
  color: #777;
  text-align: center;
  margin: 0;
  padding: 0 0.25rem;
}
.contact-recaptcha--chat a {
  color: #666;
}
.contact-recaptcha--chat a:hover {
  color: #333;
}

.contact-chat-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;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-modal-close {
  align-self: flex-end;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: #4a4a4a;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-modal-close:hover {
  background: #3a3a3a;
}
.contact-modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.contact-modal-close span {
  margin-top: -2px;
}

@media (max-width: 380px) {
  .contact-chat-fields-mini {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  margin: 0;
}

.footer-meta {
  margin: 0;
  font-size: 0.875rem;
}
