/* Mașiniștii – site de prezentare. Fără framework-uri, fără fonturi externe: se încarcă repede și pe 4G slab. */
:root {
  --navy: #21273a;
  --navy-2: #2c3449;
  --light: #e3e6e9;
  --yellow: #f2b705;
  --yellow-2: #d9a300;
  --wa: #25d366;
  --wa-2: #1fb558;
  --text: #1c2130;
  --muted: #5b6475;
  --bg: #f5f6f8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 20, 32, 0.12);
  --max: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  padding-bottom: 64px; /* loc pentru bara fixă de pe mobil */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 16px; }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-bottom: 1.6em; }
.note { color: var(--muted); font-size: .95rem; }

/* butoane */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: 13px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }
.link { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.link:hover { background: #fff6d6; }

/* antet */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 16px; background: var(--navy); color: var(--light);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--light); margin-right: auto; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: .06em; }
.brand small { display: block; font-size: .78rem; opacity: .8; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--light); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.nav a:hover { background: rgba(255,255,255,.1); }
.btn-phone { background: var(--yellow); color: var(--navy); padding: 10px 16px; }
.menu-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: var(--light); font-size: 1.3rem; border-radius: 8px; padding: 4px 10px; }

/* hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,39,58,.35) 0%, rgba(33,39,58,.78) 60%, rgba(33,39,58,.95) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 72px 16px 56px; width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--yellow); margin-bottom: .8em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 60ch; opacity: .95; }
.chips { list-style: none; padding: 0; margin: 1.4em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; font-size: .92rem; backdrop-filter: blur(4px); }

/* banda de încredere */
.band { background: var(--yellow); color: var(--navy); }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px 16px; }
.band-grid div { display: flex; flex-direction: column; }
.band-grid strong { font-size: 1.02rem; }
.band-grid span { font-size: .88rem; opacity: .85; }

/* carduri servicii */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card > img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body ul { padding-left: 18px; margin: 0 0 1em; color: #2b3242; flex: 1; }
.card-body li { margin-bottom: .3em; }
.card-cta { background: var(--navy); color: var(--light); justify-content: center; }
.card-cta .card-body { justify-content: center; }

/* secțiuni închise / deschise */
.dark { background: var(--navy); color: var(--light); }
.dark h2 { color: #fff; }
.dark .note { color: #b9c0cc; }
.light { background: var(--white); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: .6em; }
.ticks li::before { content: "✔"; position: absolute; left: 0; color: var(--yellow); font-weight: 900; }
.tuning-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tuning-pics img { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; aspect-ratio: 3 / 4; }
.tuning-pics img:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

/* galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: #dfe3e8; }
.gallery img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* despre */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story figure { margin: 0; }
.story img { border-radius: 10px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.story figure:nth-child(2) { grid-column: 1 / -1; }
.story figure:nth-child(2) img { aspect-ratio: 2.2 / 1; }
.story figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* recenzii */
.reviews { text-align: center; }
.reviews .sub { margin-left: auto; margin-right: auto; }
.reviews .cta { justify-content: center; }
.reviews .btn-outline { color: var(--navy); }

/* contact */
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 1.2em; }
.contact dt { font-weight: 700; color: var(--yellow); }
.contact dd { margin: 0; }
.contact a { color: #fff; }
.map-card { background: var(--navy-2); border-radius: var(--radius); overflow: hidden; }
.map-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.map-card p { padding: 14px 18px; margin: 0; color: #cdd3dc; }

/* subsol */
.foot { background: #171c2b; color: #aeb6c4; font-size: .9rem; padding: 28px 0 90px; }
.foot a { color: #dfe4ec; }
.foot .tiny { font-size: .8rem; opacity: .8; }

/* bara fixă (mobil) */
.sticky-cta { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,12,20,.92); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 1.4rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }

/* tablete */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
  .btn-phone { display: none; }
  .menu-toggle { display: inline-block; }
  .top.open .nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.3); }
  .sticky-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
  .sticky-cta a { text-align: center; padding: 15px 10px; font-weight: 800; text-decoration: none; background: var(--yellow); color: var(--navy); font-size: 1.05rem; }
  .sticky-cta a.wa { background: var(--wa); color: #fff; }
}

/* telefoane */
@media (max-width: 640px) {
  .section { padding: 40px 16px; }
  .hero { min-height: 86vh; }
  .hero-inner { padding: 48px 16px 40px; }
  .hero-bg img { object-position: center 70%; }
  .cards { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; gap: 10px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cta .btn { flex: 1 1 100%; }
  .contact { grid-template-columns: 1fr; gap: 2px 0; }
  .contact dd { margin-bottom: 10px; }
  .tuning-pics { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr 1fr; }
}
