:root {
  /* Brand palette sampled from the office logo / business card */
  --color-bg: #faf1e4;
  --color-surface: #ffffff;
  --color-card-tan: #f3e3cd;
  --color-text: #3d2b1c;
  --color-muted: #6a4f38;
  --color-primary: #4a3321;
  --color-primary-dark: #2e2010;
  --color-accent: #b8794e;
  --color-accent-light: #d9ad83;
  /* Darker copper for text/buttons - meets WCAG AA contrast (4.5:1) on all light backgrounds */
  --color-accent-text: #774a29;
  --color-border: #ecdcc3;
  --radius: 16px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 241, 228, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--color-border);
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

.brand-text span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--color-muted);
}

nav.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--color-accent-text);
  border-color: var(--color-accent);
}

/* Hero - warm, light, brand-led (not a dominating color block) */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, var(--color-card-tan) 0%, var(--color-bg) 60%);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.6;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: var(--color-primary);
  margin: 0 0 18px;
  font-weight: 700;
  text-wrap: balance;
}

.hero p.lead {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: var(--color-muted);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-accent-text);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 10px 24px -10px rgba(184, 121, 78, 0.6);
}

.btn:hover { background: #5f3a20; transform: translateY(-1px); }

.btn.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
  box-shadow: none;
}

.btn.btn-outline:hover { background: var(--color-card-tan); }

/* Sections */
section { padding: 64px 0; }

section.alt { background: var(--color-surface); }

.section-title {
  text-align: center;
  font-size: 1.75rem;
  color: var(--color-primary);
  margin: 0 0 12px;
  font-weight: 700;
}

.section-eyebrow {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-text);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto 44px;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
}

.service-card {
  position: relative;
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -16px rgba(74, 51, 33, 0.35);
}

.service-card .service-toggle-icon {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-card-tan);
  color: var(--color-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s ease;
}

.service-card.is-open .service-toggle-icon {
  transform: rotate(45deg);
}

.service-card .service-desc {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  text-align: start;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.7;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}

.service-card.is-open .service-desc {
  max-height: 220px;
  opacity: 1;
  margin-top: 12px;
}

/* Detailed service cards (draft variant for comparison) */
.services-grid.detailed {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card.detailed {
  text-align: start;
  padding: 28px 26px;
}

.service-card.detailed h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.service-card.detailed p {
  margin: 0;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.draft-banner {
  background: var(--color-card-tan);
  border: 1px solid var(--color-accent-light);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 36px;
}

.draft-banner a { color: var(--color-accent); font-weight: 700; text-decoration: underline; }

/* ---- Team: static profile cards (brand-colored image panel + full bio) ---- */
#team { padding-top: 40px; }

.profile-card {
  background: var(--color-surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 44px -26px rgba(74, 51, 33, 0.3);
  max-width: 760px;
  margin: 0 auto 44px;
}

.profile-card:last-child { margin-bottom: 0; }

.profile-card-visual {
  position: relative;
  height: 460px;
  background: radial-gradient(ellipse at 50% 15%, #c99467 0%, var(--color-primary) 72%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-card-visual img {
  height: 90%;
  width: auto;
  max-width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(20, 12, 4, 0.35));
}

.profile-card-visual.is-placeholder img {
  height: 46%;
  opacity: 0.96;
}

.profile-card-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 32px 20px;
  background: linear-gradient(to top, rgba(16, 10, 4, 0.92) 0%, rgba(16, 10, 4, 0.75) 40%, transparent 100%);
  color: #fff;
  text-align: start;
}

.profile-card-caption .profile-role {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.72rem;
  color: var(--color-accent-light);
  font-weight: 700;
  margin: 0 0 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.profile-card-caption .profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.profile-card-body {
  padding: 36px 40px;
}

.profile-card-body p {
  margin: 0 0 14px;
  color: var(--color-text);
}

.profile-card-body p:last-child { margin-bottom: 0; }

.story-trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: var(--color-card-tan);
  border: 1px solid var(--color-accent-light);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 28px 0 0;
  cursor: pointer;
  text-align: start;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.story-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(184, 121, 78, 0.45);
}

.story-trigger-icon {
  font-size: 2rem;
  color: var(--color-accent-text);
  line-height: 1;
  flex-shrink: 0;
}

.story-trigger-text {
  flex: 1;
  min-width: 0;
}

.story-trigger-label {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.story-trigger-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 2px;
  font-weight: 400;
}

.story-trigger-chevron {
  font-size: 0.8rem;
  color: var(--color-accent-text);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.story-trigger.is-open .story-trigger-chevron {
  transform: rotate(180deg);
}

.story-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.story-content.is-open {
  max-height: 900px;
  opacity: 1;
  margin-top: 16px;
}

.pull-quote {
  margin: 28px 0;
  padding: 26px 28px;
  background: var(--color-card-tan);
  border-radius: 16px;
  border-inline-start: 4px solid var(--color-accent);
}

.pull-quote p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-primary);
  margin: 0 0 14px;
}

.pull-quote cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--color-accent-text);
  font-size: 0.9rem;
  margin-top: 4px;
}

.credentials-heading {
  margin: 30px 0 4px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.credentials-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credentials-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-text);
  font-size: 0.93rem;
}

.credentials-list li::before {
  content: "\25C6";
  color: var(--color-accent-text);
  font-size: 0.65rem;
  margin-top: 6px;
}

.profile-pending-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-accent-text);
  background: var(--color-card-tan);
  border: 1px solid var(--color-accent-light);
  border-radius: 999px;
  padding: 4px 14px;
  margin-top: 6px;
}

@media (max-width: 680px) {
  .profile-card-visual { height: 340px; }
  .profile-card-body { padding: 28px 24px; }
}

/* Testimonials - real (redacted) chat screenshots in a masonry gallery */
/* Testimonials - warm copper-tan backdrop so the white message cards stand out */
.testimonials-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(184, 121, 78, 0.22), transparent 48%),
    linear-gradient(160deg, #f3e3cd 0%, #ecd5b8 55%, #e9cfb0 100%);
  border-top: 1px solid var(--color-border);
}

/* Oversized decorative quotation mark */
.testimonials-section::before {
  content: "\201D";
  position: absolute;
  top: -40px;
  inset-inline-start: 4%;
  z-index: -1;
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 22rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.14;
  pointer-events: none;
}

.testimonials-section .section-subtitle,
.testimonials-section .testimonials-hint { color: #5e4630; }

.testimonials-section .testimonial-shot {
  border: 6px solid #fff;
}

.testimonials-gallery {
  columns: 3;
  column-gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .testimonials-gallery { columns: 2; }
}

@media (max-width: 560px) {
  .testimonials-gallery { columns: 1; }
}

.testimonial-shot {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 22px;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(74, 51, 33, 0.08), 0 16px 32px -20px rgba(74, 51, 33, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(74, 51, 33, 0.1), 0 22px 40px -18px rgba(74, 51, 33, 0.4);
}

.testimonial-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.testimonials-hint {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.82rem;
  margin-top: 28px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(20, 12, 4, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox[hidden] { display: none; }

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(520px, 90vw);
  max-height: 86vh;
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  inset-inline-end: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

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

/* Footer */
footer.site-footer {
  background: var(--color-primary-dark);
  color: #efe6da;
  padding: 44px 0 28px;
  margin-top: 40px;
}

footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

footer.site-footer h4 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 1rem;
}

footer.site-footer p, footer.site-footer a {
  color: #cdbda9;
  text-decoration: none;
  font-size: 0.92rem;
}

footer.site-footer a:hover { color: var(--color-accent-light); }

.footer-bottom {
  text-align: center;
  color: #a38a73;
  font-size: 0.8rem;
  margin-top: 32px;
}

.placeholder-note {
  font-size: 0.75rem;
  color: var(--color-accent-light);
  background: rgba(217, 173, 131, 0.14);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  margin-inline-end: 6px;
}

@media (max-width: 680px) {
  nav.main-nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .site-header .container { flex-direction: column; gap: 10px; }
  .hero { padding: 56px 0 40px; }
}

.hero-title-line { display: block; }

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--color-accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

footer.site-footer :focus-visible,
.lightbox :focus-visible { outline-color: var(--color-accent-light); }

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

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 0; }

footer.site-footer .footer-links {
  text-align: center;
  margin: 24px 0 0;
}

footer.site-footer .footer-links a { text-decoration: underline; }

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

/* Legal pages (accessibility statement etc.) */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.legal-page h2 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin: 36px 0 8px;
}

.legal-page ul { padding-inline-start: 22px; }
.legal-page li { margin-bottom: 6px; }

.legal-page .updated {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.contact-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.contact-box p { margin: 4px 0; }
.contact-box a { color: var(--color-accent-text); font-weight: 600; }

.testimonials-disclaimer {
  text-align: center;
  color: #5e4630;
  font-size: 0.85rem;
  max-width: 640px;
  margin: 6px auto 0;
}

/* Contact form - full-width, compact */
.contact-form,
.contact-strip {
  max-width: 980px;
  margin-inline: auto;
}

.contact-form {
  margin-top: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  box-shadow: 0 18px 36px -26px rgba(74, 51, 33, 0.35);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 16px;
}

.field-wide { grid-column: 1 / -1; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 4px;
}

.form-footer .consent { margin: 0; flex: 1; }
.form-footer .btn { flex: none; padding: 12px 36px; }

.contact-strip {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}

.contact-strip li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--color-primary);
}

.contact-strip li span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-muted);
}

.contact-strip a { color: var(--color-accent-text); font-weight: 700; }

@media (max-width: 860px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .contact-form { padding: 20px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-footer .btn { width: 100%; }
}

.field { margin-bottom: 12px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.field .optional { font-weight: 400; color: var(--color-muted); font-size: 0.85rem; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid #b79d82;
  border-radius: 10px;
  padding: 9px 12px;
}

.field textarea { resize: vertical; }

.field-note,
.legal-note {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.legal-note { margin-top: 14px; }

.field.consent { display: flex; gap: 10px; align-items: flex-start; }
.field.consent input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--color-accent-text); }
.field.consent label { font-weight: 400; margin: 0; }
.field.consent a { color: var(--color-accent-text); }

.form-error {
  color: #9b2226;
  font-weight: 600;
  margin: 0 0 12px;
}

.contact-form .btn { border: none; cursor: pointer; font: inherit; font-weight: 700; }

/* Contact page backdrop - warm copper glow, echoing the testimonials page */
section.contact-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 80px;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.6), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(184, 121, 78, 0.24), transparent 46%),
    linear-gradient(165deg, #faf1e4 0%, #f3e1c8 50%, #ecd3b3 100%);
  border-top: 1px solid var(--color-border);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  z-index: -1;
  border-radius: 50%;
  border: 2px solid rgba(184, 121, 78, 0.22);
  box-shadow: 0 0 0 38px rgba(184, 121, 78, 0.07), 0 0 0 76px rgba(184, 121, 78, 0.05);
  pointer-events: none;
}

.contact-section .contact-form {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(184, 121, 78, 0.25);
}

.contact-section .contact-strip li {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(184, 121, 78, 0.25);
}

.contact-section .contact-form { margin-top: 0; }

/* Home - entry cards to the inner pages */
.home-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -22px rgba(74, 51, 33, 0.5);
}

.home-card h2 { margin: 0; font-size: 1.2rem; color: var(--color-primary); }
.home-card p { margin: 0; font-size: 0.93rem; color: var(--color-muted); flex: 1; }
.home-card-more { color: var(--color-accent-text); font-weight: 700; font-size: 0.9rem; }

@media (max-width: 900px) { .home-links-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .home-links-grid { grid-template-columns: 1fr; } }

/* Anchored sections sit below the sticky header */
section[id] { scroll-margin-top: 62px; }

.direct-heading {
  max-width: 980px;
  margin: 26px auto 10px;
  font-size: 1.05rem;
  color: var(--color-primary);
  text-align: center;
}

.direct-heading + .contact-strip { margin-top: 0; }

/* ===== Languages: Russian / English are left-to-right ===== */
html[lang="ru"] body,
html[lang="ru"] input,
html[lang="ru"] select,
html[lang="ru"] textarea,
html[lang="ru"] button { font-family: "Rubik", "Heebo", "Segoe UI", Arial, sans-serif; }

html[dir="ltr"] .service-card,
html[dir="ltr"] .story-trigger { text-align: left; }

/* language switcher in the header */
.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: none;
}

.lang-switch button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
}

.lang-switch button:hover { border-color: var(--color-border); background: var(--color-card-tan); }

.lang-switch button[aria-pressed="true"] {
  background: var(--color-accent-text);
  border-color: var(--color-accent-text);
  color: #fff;
}

@media (max-width: 680px) {
  .lang-switch { justify-content: center; }
}

/* ===== Hero logo ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 24px;
}


.hero-grid .hero-text h1 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}

/* ===== Accessibility toolbar ===== */
.a11y-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  direction: ltr;
}

.a11y-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30, 18, 8, 0.35);
}

.a11y-toggle:hover { background: var(--color-primary-dark); }

.a11y-panel {
  position: absolute;
  left: 0;
  bottom: 64px;
  width: min(300px, calc(100vw - 32px));
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 44px rgba(30, 18, 8, 0.3);
  direction: rtl;
}

html[dir="ltr"] .a11y-panel { direction: ltr; }
.a11y-panel[hidden] { display: none; }

.a11y-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.a11y-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.a11y-option,
.a11y-reset {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 8px;
  border-radius: 10px;
  border: 1.5px solid #b79d82;
  background: var(--color-bg);
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1.3;
}

.a11y-option[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.a11y-option:disabled { opacity: 0.45; cursor: default; }

.a11y-reset { width: 100%; margin-top: 8px; }

.a11y-statement {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-accent-text);
  font-weight: 600;
}

.a11y-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
}

/* accessibility modes (set on <html> by site.js) */
html.a11y-fs-1 { font-size: 112.5%; }
html.a11y-fs-2 { font-size: 125%; }
html.a11y-fs-3 { font-size: 150%; }

html.a11y-gray { filter: grayscale(1); }

html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid currentColor; outline-offset: 2px; }

html.a11y-font body,
html.a11y-font body * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0.02em; }
html.a11y-font body { line-height: 1.9; }

html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

html.a11y-contrast {
  --color-bg: #000;
  --color-surface: #000;
  --color-card-tan: #111;
  --color-text: #fff;
  --color-muted: #fff;
  --color-primary: #ffe600;
  --color-primary-dark: #000;
  --color-accent: #ffe600;
  --color-accent-light: #ffe600;
  --color-accent-text: #ffe600;
  --color-border: #fff;
}

html.a11y-contrast body,
html.a11y-contrast .site-header,
html.a11y-contrast .hero,
html.a11y-contrast section,
html.a11y-contrast section.alt,
html.a11y-contrast .testimonials-section,
html.a11y-contrast section.contact-section,
html.a11y-contrast .profile-card,
html.a11y-contrast .profile-card-body,
html.a11y-contrast .service-card,
html.a11y-contrast .contact-form,
html.a11y-contrast .contact-strip li,
html.a11y-contrast .home-card,
html.a11y-contrast .a11y-panel,
html.a11y-contrast .story-trigger,
html.a11y-contrast .pull-quote,
html.a11y-contrast footer.site-footer { background: #000 !important; color: #fff !important; border-color: #fff !important; }

html.a11y-contrast .hero::after,
html.a11y-contrast .testimonials-section::before,
html.a11y-contrast section.contact-section::before { display: none; }

html.a11y-contrast a,
html.a11y-contrast footer.site-footer a { color: #ffe600 !important; }

html.a11y-contrast .btn,
html.a11y-contrast .lang-switch button[aria-pressed="true"],
html.a11y-contrast .a11y-option[aria-pressed="true"],
html.a11y-contrast .a11y-toggle { background: #ffe600 !important; color: #000 !important; border-color: #ffe600 !important; }

html.a11y-contrast .field input,
html.a11y-contrast .field select,
html.a11y-contrast .field textarea { background: #000 !important; color: #fff !important; border-color: #fff !important; }

html.a11y-contrast .hero { background-image: none !important; }
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast p,
html.a11y-contrast li,
html.a11y-contrast label,
html.a11y-contrast span { color: #fff; }
html.a11y-contrast .profile-card-caption * { color: #fff !important; }
html.a11y-contrast a *, html.a11y-contrast .btn * { color: inherit; }

/* header: keep menu items on one line, let the bar wrap gracefully when a language is longer */
nav.main-nav a { white-space: nowrap; }
.site-header .container { flex-wrap: wrap; gap: 8px 20px; }
html[dir="ltr"] nav.main-nav ul { gap: 20px; }
html[dir="ltr"] .brand-text span { max-width: 330px; }


/* the emblem glow may extend past the viewport edge - never create horizontal scroll */
.hero { overflow-x: clip; }

/* ===== Hero: the logo artwork (with its plaster wall) is the section background =====
   The wall is extended sideways so the text sits on plain wall and the emblem is never covered. */
.hero {
  --wall: #e0bea3;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 39.2vw, 820px);
  padding: 56px 0;
  background-color: var(--wall);
  background-image: url("assets/brand/hero-bg-rtl.jpg");
  background-image: image-set(url("assets/brand/hero-bg-rtl.webp") type("image/webp"), url("assets/brand/hero-bg-rtl.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
}

html[dir="ltr"] .hero {
  background-image: url("assets/brand/hero-bg-ltr.jpg");
  background-image: image-set(url("assets/brand/hero-bg-ltr.webp") type("image/webp"), url("assets/brand/hero-bg-ltr.jpg") type("image/jpeg"));
  background-position: right center;
}

/* soft veil on the text side keeps the copy readable without hiding the logo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(250, 241, 228, 0.88) 0%, rgba(250, 241, 228, 0.8) 42%, rgba(250, 241, 228, 0.3) 58%, rgba(250, 241, 228, 0) 72%);
  pointer-events: none;
}

html[dir="ltr"] .hero::before {
  background: linear-gradient(to right, rgba(250, 241, 228, 0.88) 0%, rgba(250, 241, 228, 0.8) 42%, rgba(250, 241, 228, 0.3) 58%, rgba(250, 241, 228, 0) 72%);
}

.hero > .container { position: relative; z-index: 1; width: 100%; }
.hero p.lead { color: var(--color-text); }
.hero-spacer { min-height: 1px; }

@media (max-width: 980px) {
  .hero {
    display: block;
    --wall: #d2b097;
    min-height: 0;
    padding: calc(86vw + 10px) 0 44px;
    background-image: url("assets/brand/hero-bg-mobile.jpg");
    background-image: image-set(url("assets/brand/hero-bg-mobile.webp") type("image/webp"), url("assets/brand/hero-bg-mobile.jpg") type("image/jpeg"));
    background-size: 100% auto;
    background-position: top center;
  }
  html[dir="ltr"] .hero { background-image: url("assets/brand/hero-bg-mobile.jpg"); background-image: image-set(url("assets/brand/hero-bg-mobile.webp") type("image/webp"), url("assets/brand/hero-bg-mobile.jpg") type("image/jpeg")); background-position: top center; }
  .hero::before,
  html[dir="ltr"] .hero::before { background: linear-gradient(to bottom, rgba(250, 241, 228, 0) 0, rgba(250, 241, 228, 0) calc(86vw - 12px), rgba(250, 241, 228, 0.78) calc(86vw + 110px), rgba(250, 241, 228, 0.88) 100%); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-spacer { display: none; }
}

/* phone numbers and e-mail are real links - make that obvious and easy to tap */
footer.site-footer a[href^="tel:"],
footer.site-footer a[href^="mailto:"] {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 4px 0;
  font-weight: 500;
}

footer.site-footer a[href^="tel:"]:hover,
footer.site-footer a[href^="mailto:"]:hover { color: #fff; }

@media (max-width: 680px) {
  footer.site-footer a[href^="tel:"],
  footer.site-footer a[href^="mailto:"],
  .contact-strip a { padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
}
