/* =========================================================================
   LA Associates — stylesheet
   Single shared stylesheet for the English (/) and Bulgarian (/bg/) pages.
   Theming lives in :root — change the brand here and it updates everywhere.
   ========================================================================= */

:root {
  --brand:        #8C181B;   /* logo maroon */
  --brand-dark:   #6E1215;
  --brand-tint:   #f6ecec;   /* very light maroon wash for section backgrounds */
  --ink:          #1F2123;   /* body text */
  --ink-soft:     #55585b;   /* secondary text */
  --line:         #e6e3e1;   /* hairline borders */
  --bg:           #ffffff;
  --bg-alt:       #faf8f7;
  --radius:       14px;
  --radius-lg:    22px;
  --maxw:         1120px;
  --shadow:       0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(20,10,10,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(16px, 1vw + 14px, 18px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw + .8rem, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid var(--brand);
  transition: background .15s ease, color .15s ease, transform .15s ease;
  text-decoration: none; cursor: pointer; font-size: .98rem;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); text-decoration: none; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.nav__logo { flex: 0 1 auto; min-width: 0; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }
.nav__right { display: flex; align-items: center; gap: 1.2rem; }

/* language switcher */
.lang { display: inline-flex; align-items: center; gap: .15rem; font-size: .85rem; font-weight: 700; }
.lang a { color: var(--ink-soft); padding: .15rem .35rem; border-radius: 6px; }
.lang a:hover { color: var(--brand); text-decoration: none; }
.lang [aria-current="true"] { color: #fff; background: var(--brand); }
.lang span.sep { color: var(--line); }

/* mobile nav */
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  /* Wordmark is very wide (≈10:1); at fixed 30px height it can't fit beside the
     language switcher + menu button on a phone, so it was being width-clamped and
     squished. Let it scale down proportionally instead, and tighten the controls
     so it stays as large as possible. */
  .nav__logo img { height: auto; width: auto; max-width: 100%; }
  .nav__right { gap: .7rem; }
  .lang { font-size: .8rem; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 0;
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: .85rem clamp(20px,5vw,40px); width: 100%; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1100px 620px at 50% -16%, var(--brand-tint), transparent 60%); }
.hero__inner { padding-block: clamp(60px, 10vw, 128px); text-align: center; }
.hero__inner h1 { max-width: 20ch; margin-inline: auto; }
.hero__inner .lead { max-width: 60ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; justify-content: center; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .3rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* product (portfolio) */
.product { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem); background: #fff; box-shadow: var(--shadow); }
.product__visual { background: var(--brand-tint); border-radius: var(--radius); aspect-ratio: 4/5; display: grid; grid-template-columns: 1fr; place-items: center; padding: clamp(24px, 4vw, 44px); }
.product__visual img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(20,10,10,.18)); }
.product__tag { display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--brand); background: var(--brand-tint); padding:.3rem .7rem; border-radius:999px; margin-bottom:.8rem; }
.product ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.product li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); font-size: .97rem; }
.product li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55rem; border-radius: 50%; background: var(--brand); }
@media (max-width: 680px) {
  .product { grid-template-columns: 1fr; }
  /* Drop the 4/5 box (which height-constrained the can) and let the panel hug a
     larger, width-driven can on mobile. */
  .product__visual { max-width: 280px; margin-inline: auto; aspect-ratio: auto; padding: clamp(18px, 5vw, 28px); }
}

/* sourcing split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split__panel { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); }
.split__panel .eyebrow { color: #f3c9c9; }
.split__panel h2 { color: #fff; }
.split__panel p { color: rgba(255,255,255,.9); }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.contact__ico svg { width: 20px; height: 20px; }
.contact__list li > span:last-child { min-width: 0; }
.contact__list .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.contact__list .v { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact__list a.v:hover { color: var(--brand); }
.contact__card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); }
.contact__card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.contact__card dt { font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.contact__card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { background: #1a1416; color: #cfc7c7; padding: clamp(40px, 6vw, 64px) 0 28px; }
.site-footer a { color: #fff; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__brand img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer__brand p { max-width: 38ch; color: #b3abab; font-size: .95rem; }
.footer__nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer__nav > div { min-width: 0; }
.footer__nav h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8f8888; margin: 0 0 .8rem; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__nav li { overflow-wrap: anywhere; }
.footer__nav a { color: #cfc7c7; font-size: .95rem; }
.footer__nav a:hover { color: #fff; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .85rem; color: #8f8888; }

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