/* YLunga Consulting site styles. Colors come from the logo. */

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

:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-alt: #eef0f2;
  --ink: #26313c;
  --ink-soft: #3a4652;
  --muted: #5f6b78;
  --accent: #5b6f8a;
  --accent-strong: #435873;
  --accent-tint: #e3e8ef;
  --border: #e1dfda;
  --dark: #1f2933;
  --dark-text: #e9edf2;
  --dark-muted: #a7b2bf;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(38, 49, 60, .06), 0 8px 24px rgba(38, 49, 60, .06);
  --font-head: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
  z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--font-body);
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 243, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 800 1.3rem/1 var(--font-head); color: var(--ink); letter-spacing: -0.02em; }
.brand-sub { font-size: .62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  transition: color .2s;
}
.site-nav a:not(.btn):hover { color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font: 600 .78rem/1 var(--font-body);
}
.lang-opt { padding: 7px 10px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
html[lang="en"] .lang-opt[data-lang="en"],
html[lang="fr"] .lang-opt[data-lang="fr"] { background: var(--ink); color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(circle at 85% 20%, var(--accent-tint) 0, transparent 45%),
    linear-gradient(var(--bg), var(--bg));
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 22px; max-width: 14ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-loc {
  display: flex; align-items: center; gap: 12px; margin-top: 36px;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em;
}
.hero-loc .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-art { color: var(--accent); }
.hero-art .bars rect { fill: var(--accent-tint); }
.hero-art .bars rect:last-child { fill: var(--accent); opacity: .85; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-products { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-products > * { flex: 0 1 calc((100% - 40px) / 3); }

.card, .product {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin: 18px 0 10px; }
.card p, .product p { color: var(--muted); font-size: .97rem; }

.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-tint);
  display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.product { display: flex; flex-direction: column; }
.product h3 { font-size: 1.3rem; margin: 14px 0 12px; }
.tag {
  align-self: flex-start; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-tint); padding: 6px 10px; border-radius: 999px;
}
.checks { list-style: none; margin: 20px 0 24px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23435873' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.text-link {
  margin-top: auto; font-weight: 600; color: var(--accent-strong); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.card-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.card-links .text-link { margin-top: 0; }
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(3px); }

/* Approach */
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--dark-muted); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { border-top: 2px solid rgba(255, 255, 255, .14); padding-top: 24px; }
.step-num { display: block; font: 800 .95rem/1 var(--font-head); color: var(--dark-muted); margin-bottom: 14px; letter-spacing: .08em; }
.steps h3 { font-size: 1.35rem; margin-bottom: 10px; }
.steps p { color: var(--dark-muted); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin-bottom: 14px; max-width: 58ch; }
.values { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.values li {
  font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft);
}
.locations { display: grid; gap: 16px; }
.location {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow); border-left: 4px solid var(--accent);
}
.loc-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.loc-city { font: 800 1.5rem/1.2 var(--font-head); margin-top: 8px; color: var(--ink); }
.loc-country { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.contact-direct { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; }
.contact-direct span { font-size: .85rem; color: var(--muted); }
.contact-direct a { font-weight: 600; color: var(--accent-strong); text-decoration: none; word-break: break-all; }
.contact-direct a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b4483c; }
.form-error { color: #9c3a2f; font-size: .9rem; font-weight: 500; }
.form-note { font-size: .84rem; color: var(--muted); }
.contact-form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: .95rem; max-width: 36ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-links a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.footer-links a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--border); }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-products > * { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 16px 20px; margin: 0;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-cta { margin-top: 16px; }
  .header-tools { margin-left: auto; }

  .hero { padding: 48px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 320px; justify-self: center; order: -1; display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 72px 0; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-products > * { flex-basis: 100%; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .contact-form { padding: 22px; }
  .contact-form .btn { justify-self: stretch; }
  .footer-inner { grid-template-columns: 1fr; }
}
