/* Mi Lawyers – shared styles for / and /vi/ */
:root {
  --ink: #14213D;
  --ink-soft: #4A5568;
  --accent: #1F3A5F;
  --accent-dark: #14213D;
  --gold: #8A5F1A;
  --gold-light: #E9D9B8;
  --line: #E3E7EE;
  --field: #A9B3C1;
  --tint: #F4F6F9;
  --hero: #2B3A4E;
  --white: #FFFFFF;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--white); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 16px; padding-bottom: 16px;
}
.brand { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); text-decoration: none; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 15px; }
.header-phone { font-weight: 600; color: var(--ink); text-decoration: none; }
.lang-switch { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 6px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--tint); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */
.hero { background: var(--hero); color: var(--white); }
/* To use a photo: save it as /assets/hero.jpg and add class="hero has-photo" in both pages */
.hero.has-photo {
  background:
    linear-gradient(rgba(20, 33, 61, 0.72), rgba(20, 33, 61, 0.72)),
    url('/assets/hero.jpg') center / cover no-repeat,
    var(--hero);
}
.hero .wrap {
  padding-top: 120px; padding-bottom: 128px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(44px, 8vw, 64px); line-height: 1.05; font-weight: 600; }
.hero p { margin: 0; font-size: 22px; color: var(--gold-light); letter-spacing: 0.02em; }

/* Sections */
section { padding: 88px 0; }
.tinted { background: var(--tint); }
.center { text-align: center; }
.lead { font-size: 19px; margin: 0 0 20px; }
.muted { color: var(--ink-soft); }
.intro p:last-of-type { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

h2 { margin: 0 0 48px; font-family: var(--serif); font-size: 38px; line-height: 1.2; font-weight: 600; text-align: center; }

.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 300px; min-width: 0; background: var(--white); border-radius: 10px; padding: 32px;
}
.card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; letter-spacing: 0.1em; color: var(--gold); }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-details { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; margin: 0; }
.contact-details dt { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; }
.contact-details dd { margin: 2px 0 0; }

.enquiry {
  flex: 3 1 420px; min-width: 0; background: var(--tint); border-radius: 10px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field-row .field { flex: 1 1 200px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; }
.field .hint { font-size: 14px; color: var(--ink-soft); margin: 0; }
.field input, .field textarea {
  font: inherit; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--field); border-radius: 6px; background: var(--white); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot p { margin: 0; flex: 1 1 220px; font-size: 14px; color: var(--ink-soft); }
.form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
.form-status[data-kind="success"] { color: #1D5C3A; }
.form-status[data-kind="error"] { color: #9B2C2C; }

/* Footer */
.site-footer { background: var(--accent-dark); color: #D6DCE5; font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; }
.site-footer a { color: var(--white); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.footer-cols > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-brand { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--white); }
.footer-head { font-weight: 600; color: var(--white); }
.footer-legal { border-top: 1px solid #33415C; margin-top: 32px; padding-top: 24px; font-size: 14px; }
.footer-legal p { margin: 0 0 8px; }
.privacy summary { cursor: pointer; color: var(--white); text-decoration: underline; display: inline; }
.privacy[open] summary { margin-bottom: 12px; }
.privacy div { max-width: 760px; }

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .hero .wrap { padding-top: 88px; padding-bottom: 96px; }
  h2 { font-size: 32px; margin-bottom: 36px; }
  .enquiry, .card { padding: 24px; }
}
