/*
  LC Language Solutions — "Klassische Beglaubigung" (editorial canon) design system.
  Direction: user-chosen category-standard execution, held to an editorial/
  publishing-house craft bar per the canon protocol (no generic law-firm
  template). Warm cream ground, serif display, the sampled brand green from
  the existing logo as the single accent — no invented seal/badge graphic;
  the real logo mark is the page's visual anchor. See
  .impeccable/surface-briefs/homepage.md and the contract comment in each
  page's <body> for the full record.
*/

/* ---------- Tokens ---------- */
:root {
  /* Paper / ink — mint green sampled from the existing lclanguagesolutions.com background (rgb(237,246,238)) */
  --paper: #edf6ee;
  --paper-edge: #e2eee3;
  --ink: #241f16;
  --ink-soft: #57503f;
  --ink-faint: #8a8271;
  --hairline: #d3ddd4;

  /* Committed brand green (sampled from the existing logo) */
  --seal: #c5e0b4; /* fills: band, primary buttons, selection */
  --seal-hover: #b3d49f;
  --seal-text: #0e3a17; /* dark green kept for text, icons, links (light fill is unreadable as text) */
  --seal-deep: #092710;
  --seal-tint: #e0e9e1;
  --seal-ink: #16210f; /* text on the light green fill */

  /* Functional (never brand identity) */
  --error: #8c2a1f;
  --error-tint: #f6e9e6;
  --success: #22532c;
  --success-tint: #e8efe6;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Lora", Georgia, "Iowan Old Style", serif;
  --font-label: "Fraunces", Georgia, serif; /* italic small-caps register for meta/labels */

  /* Scale */
  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --step-3: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.6rem, 1.9rem + 2.8vw, 4.25rem);

  --measure: 68ch;
  --radius: 2px;
  --gutter: clamp(1.25rem, 1rem + 1.5vw, 3rem);
  --shadow-1: 0 1px 3px rgba(36, 31, 22, 0.07), 0 10px 26px -14px rgba(36, 31, 22, 0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* Browser surfaces carry the design too */
::selection { background: var(--seal); color: var(--seal-ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-edge); }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border: 3px solid var(--paper-edge); border-radius: 999px; }
:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
  border-radius: 1px;
}
table { font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Layout shell ---------- */
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose { max-width: var(--measure); }

/* Editorial rule — a hairline dividing device, not a registration mark */
.mark-corners { position: relative; }
.crosshair { display: none; } /* retired with the "Amtlicher Vermerk" direction; kept as a no-op for markup compatibility */

/* ---------- Meta / editorial labels ---------- */
.meta-label {
  font-family: var(--font-label);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--seal-text);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.lang-toggle { display: flex; gap: 2px; font-family: var(--font-label); font-style: italic; font-size: 0.88rem; }
.lang-toggle a {
  padding: 0.4rem 0.65rem;
  text-decoration: none;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
}
.lang-toggle a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--seal-text);
}
.lang-toggle a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 4vw + 1rem, 6rem) var(--gutter) clamp(2.5rem, 3vw, 4rem);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  max-width: 1180px;
  margin-inline: auto;
}
.hero-credential {
  display: inline-block;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-4);
  letter-spacing: -0.01em;
  line-height: 1.06;
  max-width: 14ch;
}
.hero .lede {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 42ch;
  font-style: italic;
}
.hero .cta-row { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---------- Hero photo + stamp ----------
   Circular frame + faded-color treatment: the styling device the existing
   lclanguagesolutions.com site uses for its own hero photo (a photo
   clipped to a circle with a translucent pastel wash over part of it),
   re-applied here in the canon direction's own cream/green palette rather
   than the original site's mint-blue. The logo overlays it like a stamp,
   same device as the portrait version before it. */
.hero-photo-frame {
  --size: 360px;
  width: var(--size);
  aspect-ratio: 1 / 1;
  flex: none;
  position: relative;
}
.hero-photo-frame .hero-photo {
  /* Absolute-fill instead of aspect-ratio: the img's width/height HTML
     attributes (needed to avoid layout shift) otherwise win over the CSS
     aspect-ratio at some breakpoints and stretch the circle into an oval. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 55%;
  border-radius: 50%;
  filter: saturate(0.5) sepia(0.12) contrast(0.94) brightness(1.06);
  box-shadow: var(--shadow-1);
}
.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 28% 24%,
    color-mix(in srgb, var(--paper) 88%, white) 0%,
    color-mix(in srgb, var(--seal-tint) 70%, transparent) 38%,
    transparent 66%
  );
  mix-blend-mode: normal;
  opacity: 0.85;
  pointer-events: none;
}
.hero-stamp {
  position: absolute;
  right: -1.25rem;
  bottom: -1.25rem;
  width: 32%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-width: 84px;
  transform: rotate(-9deg);
  filter: drop-shadow(0 8px 16px rgba(36, 31, 22, 0.35));
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--seal); color: var(--seal-ink); }
.btn-primary:hover { background: var(--seal-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink-faint); }
.btn-secondary:hover { border-color: var(--seal-text); color: var(--seal-text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Official record band ---------- */
.band {
  background: var(--seal);
  color: var(--seal-ink);
  padding: clamp(1.5rem, 2vw, 2.25rem) var(--gutter);
}
.band .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
}
.band dl { display: flex; gap: 3rem; flex-wrap: wrap; }
.band dt { font-family: var(--font-label); font-style: italic; font-size: 0.82rem; opacity: 0.8; }
.band dd { font-family: var(--font-display); font-size: var(--step-1); margin-top: 0.25rem; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 5vw, 6rem) var(--gutter); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 3vw, 3rem); position: relative; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-3);
  letter-spacing: -0.005em;
}
.section-head p { margin-top: 0.85rem; color: var(--ink-soft); font-size: var(--step-1); }

/* ---------- Pull-quote (editorial register) ---------- */
.pull-quote {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(2.5rem, 4vw, 4rem) var(--gutter);
  text-align: center;
}
.pull-quote blockquote {
  margin: 0 auto;
  max-width: 46ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.35;
  color: var(--seal-deep);
}
.pull-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.service {
  padding: clamp(1.75rem, 2.5vw, 2.75rem);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.service:nth-child(1) { border-right: 1px solid var(--hairline); }
.service .meta-label { display: block; margin-bottom: 0.9rem; }
.service h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); letter-spacing: -0.005em; }
.service p { margin-top: 0.85rem; color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .service:nth-child(1) { border-right: none; }
}

/* ---------- Documents grid ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.doc-tile {
  background: var(--paper);
  padding: 1.4rem 1.3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.doc-tile .doc-icon { flex: none; width: 22px; height: 22px; margin-top: 0.15rem; color: var(--seal-text); }
.doc-tile span { font-size: 0.95rem; }
.doc-note { margin-top: 1.25rem; color: var(--ink-faint); font-size: 0.88rem; font-style: italic; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); filter: sepia(0.06) contrast(1.02); box-shadow: var(--shadow-1); }
.about-body h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); letter-spacing: -0.005em; }
.about-title { margin-top: 0.6rem; font-family: var(--font-label); font-style: italic; font-size: 0.92rem; color: var(--seal-text); }
.about-body p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 58ch; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } .about-photo img { aspect-ratio: 16/10; max-width: 260px; } }

/* ---------- Pricing note ---------- */
.pricing-note {
  border: 1px solid var(--hairline);
  background: var(--paper-edge);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
}
.pricing-note svg { width: 24px; height: 24px; color: var(--seal-text); margin-top: 0.15rem; }
.pricing-note p { color: var(--ink-soft); min-width: 0; }
.pricing-note strong { color: var(--ink); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 4rem); }
.contact-side dl { display: grid; gap: 1.4rem; margin-top: 1.75rem; }
.contact-side dt { font-family: var(--font-label); font-style: italic; font-size: 0.82rem; color: var(--ink-faint); }
.contact-side dd { margin-top: 0.3rem; font-family: var(--font-display); font-size: var(--step-1); }
.contact-side dd a { text-decoration: none; border-bottom: 1px solid var(--hairline); }
.contact-side dd a:hover { border-color: var(--seal-text); color: var(--seal-text); }

form.intake {
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--paper) 55%, white 45%);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
}
.field { display: grid; gap: 0.4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hairline); }
.field:first-child { padding-top: 0; }
.field label, .field .field-label { font-family: var(--font-label); font-style: italic; font-size: 0.88rem; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.6rem 0;
  border: none;
  background: transparent;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field .hint { font-size: 0.8rem; color: var(--ink-faint); }
.field.has-error { border-bottom-color: var(--error); }
.field .error-msg { display: none; color: var(--error); font-size: 0.85rem; font-family: var(--font-label); font-style: italic; }
.field.has-error .error-msg { display: block; }

.upload-drop {
  border: 1px dashed var(--ink-faint);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.upload-drop:hover, .upload-drop.is-dragover { border-color: var(--seal-text); background: var(--seal-tint); }
.upload-drop input { display: none; }
.upload-list { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.5rem; padding: 0; }
.upload-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  background: var(--paper-edge);
  border-radius: var(--radius);
  color: var(--ink-faint);
}
.upload-item.is-received { color: var(--ink); background: var(--seal-tint); }
.upload-item .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.upload-item button { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; font-family: var(--font-label); font-style: italic; }

.form-actions { margin-top: 1.5rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.form-status { font-family: var(--font-label); font-style: italic; font-size: 0.88rem; }
.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="sending"] { color: var(--ink-faint); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem var(--gutter) 3rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-links { display: flex; gap: 1.5rem; font-size: 0.9rem; font-family: var(--font-label); font-style: italic; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--seal-text); }
.footer-fine { margin-top: 2rem; color: var(--ink-faint); font-size: 0.82rem; }

/* ---------- Legal pages ---------- */
.legal-page main { padding: clamp(3rem, 5vw, 5rem) var(--gutter); }
.legal-page h1 { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; }
.legal-page h2 { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; margin-top: 2.25rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); margin-top: 0.75rem; max-width: var(--measure); }
.legal-page ul { list-style: disc; padding-left: 1.3rem; }
.legal-page a { color: var(--seal-text); }
.placeholder-flag {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--error-tint);
  color: var(--error);
  font-family: var(--font-label);
  font-style: italic;
  font-size: 0.85rem;
  border-radius: var(--radius);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-photo-frame { width: 240px; order: -1; margin-bottom: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Spam honeypot: positioned off-screen rather than display:none so naive bots still fill it */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.75rem 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.35rem;
  top: 0.95rem;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--seal-text);
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list summary:hover { color: var(--seal-text); }
.faq-answer { padding: 0 2.75rem 1.5rem 0; color: var(--ink-soft); max-width: 68ch; }

.upload-msg { margin-top: 0.75rem; color: var(--error); font-family: var(--font-label); font-style: italic; font-size: 0.9rem; }
.upload-msg:empty { display: none; }
