/* ==========================================================================
   VisualMH — site stylesheet
   Plus Jakarta Sans (self-hosted). Brand yellow carries the page; teal is a
   quiet secondary; charcoal for dark blocks. No framework.
   ========================================================================== */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/PlusJakartaSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/PlusJakartaSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/PlusJakartaSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2"); }

/* ---------- Tokens ------------------------------------------------------ */
:root {
  --ink: #1c1c1c;
  --paper: #ffffff;
  --mist: #f3f5f7;

  --yellow: #fbbc04;
  --yellow-deep: #e2a800;
  --yellow-soft: #fff4cc;
  --teal: #4bc1c1;
  --teal-deep: #2c9c9c;
  --teal-soft: #e3f6f6;

  --text: #1c1c1c;
  --muted: #5b6066;
  --faint: #8a9096;
  --line: rgba(28, 28, 28, 0.12);
  --line-strong: rgba(28, 28, 28, 0.28);
  --surface: #ffffff;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --gutter: 20px;
  --section: clamp(64px, 4vw + 40px, 120px);
  --header-h: 72px;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
}
@media (min-width: 720px)  { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

.theme-ink {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.35);
  --surface: #262626;
  background: var(--ink);
  color: var(--text);
}

/* ---------- Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--text); }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; border-radius: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }

/* ---------- Type -------------------------------------------------------- */
h1, h2, h3 { margin: 0; font-weight: 800; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.9vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 20ch; }
h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }

.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.copy { color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.copy p { margin-bottom: 1.1em; }
.copy p:last-child { margin-bottom: 0; }
.copy a { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.theme-ink .copy a { color: var(--yellow); }

.section-head { margin-bottom: clamp(36px, 4vw, 56px); display: grid; gap: 18px; }
.section-head--split { display: grid; gap: 24px 64px; align-items: end; }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center h2 { max-width: 24ch; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .section-head--split .lead { max-width: 30em; }
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 0.95rem; font-weight: 700; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #333; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.brand .logo-light { display: none; }

/* over the dark hero (class set by JS while at the top of the page) */
.site-header.is-top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-top .brand .logo-dark { display: none; }
.site-header.is-top .brand .logo-light { display: block; }
.site-header.is-top .site-nav a { color: rgba(255, 255, 255, 0.72); }
.site-header.is-top .site-nav a:hover { color: #fff; }
.site-header.is-top .site-nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.14); }
.site-header.is-top .lang-switch { border-color: rgba(255, 255, 255, 0.28); }
.site-header.is-top .lang-switch a { color: rgba(255, 255, 255, 0.7); }
.site-header.is-top .lang-switch a:hover { color: #fff; }
.site-header.is-top .lang-switch a[aria-current="page"] { background: #fff; color: var(--ink); }
.site-header.is-top .menu-btn { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.site-header.is-top .menu-btn .burger { background: #fff; color: var(--ink); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 150px; height: auto; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); background: var(--mist); }
.header-tools { display: none; align-items: center; gap: 16px; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.lang-switch a { padding: 6px 12px; border-radius: 999px; color: var(--faint); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.mobile-nav .mobile-nav-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text); cursor: pointer;
}
.menu-btn .burger { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.menu-btn .burger svg { width: 18px; height: 18px; }
.menu-btn .burger .x { display: none; }
.menu-btn[aria-expanded="true"] .burger .lines { display: none; }
.menu-btn[aria-expanded="true"] .burger .x { display: block; }
@media (min-width: 1000px) {
  .site-nav { display: block; }
  .header-tools { display: flex; }
  .menu-btn { display: none; }
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--paper); padding: 24px var(--gutter) 40px;
  display: none; flex-direction: column; gap: 8px; overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a.nav-link { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
.mobile-nav .mobile-nav-foot { margin-top: 24px; }
body.nav-open { overflow: hidden; }
body.nav-open .site-header { background: #fff; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(56px, 8vw, 128px)) clamp(64px, 8vw, 128px);
  text-align: center;
  color: #fff;
  background-color: #121316;
  background-image: url("../images/hero.jpg");
  background-image: image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(251, 188, 4, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(18, 19, 22, 0.55) 0%, rgba(18, 19, 22, 0.25) 45%, rgba(18, 19, 22, 0.6) 100%);
}
.hero-inner { position: relative; display: grid; justify-items: center; gap: 24px; }
.hero h1 { max-width: 18ch; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero .lead { max-width: 36em; color: rgba(255, 255, 255, 0.78); }
.hero .lead strong { color: #fff; font-weight: 700; }
.hero .actions { justify-content: center; margin-top: 8px; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* the loud part: brand yellow, edge to edge, three big numbers */
.band { background: var(--yellow); color: var(--ink); }
.band-inner { display: grid; }
.band-inner > div { padding: 28px 0; border-top: 1px solid rgba(28, 28, 28, 0.18); }
.band-inner > div:first-child { border-top: 0; }
.band strong { display: block; font-size: clamp(2.6rem, 2rem + 2.6vw, 4.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.band span { font-size: 1rem; font-weight: 600; color: rgba(28, 28, 28, 0.72); }
@media (min-width: 720px) {
  .band-inner { grid-template-columns: repeat(3, 1fr); }
  .band-inner > div { border-top: 0; border-inline-start: 1px solid rgba(28, 28, 28, 0.18); padding: 44px 40px; }
  .band-inner > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- Branches ---------------------------------------------------- */
.offices { display: grid; gap: 0; border-top: 1px solid var(--line); }
.office { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.office img { width: 48px; height: 48px; flex: none; border-radius: 50%; }
.office strong { display: block; font-size: 1.15rem; font-weight: 700; }
.office span { color: var(--muted); }

/* ---------- Two-column blocks ------------------------------------------ */
.split { display: grid; gap: 40px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split--media-first > .split-media { order: -1; }
}
.split-copy h2 { margin-bottom: 22px; }
.split-copy .lead { margin-bottom: 18px; }
.split-copy .actions { margin-top: 32px; }

.media-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 48px); display: grid; place-items: center; }
.media-panel img { width: 100%; max-width: 440px; }
.section--mist .media-panel { border-color: transparent; }

/* ---------- Services ---------------------------------------------------- */
.service-list { display: grid; gap: 40px; }
.service { display: grid; gap: 24px; align-items: center; }
.service-photo { border-radius: var(--radius-l); overflow: hidden; background: var(--mist); }
.service-photo img { width: 100%; aspect-ratio: 592 / 250; object-fit: cover; }
.service-body { display: grid; gap: 12px; align-content: center; }
.service-body p { color: var(--muted); margin: 0; }
.service-icon { width: 48px; height: 48px; margin-bottom: 6px; }
@media (min-width: 900px) {
  .service-list { gap: 32px; }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .service--flip .service-photo { order: 2; }
  .service-body { padding-inline: 8px; }
}

/* ---------- Feature grid (why) ----------------------------------------- */
.feature-grid { display: grid; }
.feature-grid article { padding: 28px 0 32px; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.feature-grid article p { color: var(--muted); margin: 0; text-wrap: pretty; }
.feature-grid img { width: 48px; height: 48px; margin-bottom: 8px; }
@media (min-width: 760px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
  .feature-grid article { padding: 32px 0 8px; }
}

/* ---------- Call to action --------------------------------------------- */
.cta { position: relative; overflow: hidden; }
.cta .split { align-items: end; }
.cta-copy { padding-block: var(--section); }
.cta-copy h2 { margin-bottom: 22px; max-width: 16ch; }
.cta-copy .copy { margin-bottom: 32px; }
.cta-media { display: none; }
@media (min-width: 900px) {
  .cta-media { display: block; align-self: end; margin-top: 48px; }
  .cta-media img { width: min(100%, 440px); margin-inline: auto; }
}

/* ---------- Testimonials ----------------------------------------------- */
.quotes { display: grid; gap: 20px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.quote {
  background: var(--surface); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px);
  display: grid; gap: 22px; align-content: space-between;
}
.quote blockquote { margin: 0; color: var(--muted); font-size: 1.02rem; text-wrap: pretty; }
.quote-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.02em; flex: none; }
.quote-who strong { display: block; font-size: 1rem; }
.quote-who span { font-size: 0.85rem; color: var(--faint); }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.stars svg { width: 16px; height: 16px; }

/* ---------- Contact ----------------------------------------------------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; } }
.contact-aside h2 { margin-bottom: 18px; }
.contact-aside .copy { margin-bottom: 28px; }
.contact-aside dl { margin: 0; display: grid; gap: 6px; }
.contact-aside dt { font-size: 0.85rem; font-weight: 600; color: var(--faint); }
.contact-aside dd { margin: 0 0 14px; font-weight: 600; }
.contact-aside dd a { color: var(--teal-deep); }

.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 40px); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(75, 193, 193, 0.25); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c62828; }
.field-error { font-size: 0.85rem; color: #c62828; display: none; }
.field.is-invalid .field-error { display: block; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-s); font-size: 0.95rem; display: none; }
.form-status.is-success { display: block; background: #e8f5e9; color: #1b5e20; }
.form-status.is-error { display: block; background: #fdecea; color: #b71c1c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { padding-block: 72px 36px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.7fr)); gap: 48px; } }
.footer-brand img { width: 170px; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); max-width: 40ch; }
.footer-col h3 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: var(--faint); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--faint); font-size: 0.9rem; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

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