/* alfaPROJEKT — B2 · Svetlá s fotografiou */

:root {
  --navy: #071E2F;
  --ink: #10222E;
  --muted: #4A5E6B;
  --line: #DCE6EC;
  --tint: #F2F6FA;
  --pale: #E8F4FA;
  --accent: #1B98D0;      /* lines, icons (decorative) */
  --btn: #0E7AAD;        /* filled buttons with white text (4.8:1) */
  --link: #0E6A94;       /* small accent text on white */
  --deep: #0B4F6E;
  --radius: 16px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--accent); }
h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* icons */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 38px; height: 38px; stroke: var(--accent); stroke-width: 3; }

/* shared bits */
.bar { width: 60px; height: 4px; background: var(--accent); margin-bottom: 22px; }
.bar-white { background: #fff; }
h2 { font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.section { padding: 88px 0; }
.section.tint { background: var(--tint); }
.section-lead { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 640px; }

.btn {
  display: inline-block; font-weight: 700; font-size: 17px; line-height: 1.2;
  padding: 17px 30px; border: 2px solid transparent; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn-primary:hover { background: #0B6592; border-color: #0B6592; color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: transparent; color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--navy); font-weight: 800; padding: 18px 32px; }
.btn-white:hover { background: var(--pale); color: var(--navy); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { text-decoration: none; color: var(--ink); display: inline-block; }
.logo-name { display: block; font-size: 30px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.logo-name b { font-weight: 800; color: var(--btn); }
.logo-name small { font-size: 15px; font-weight: 700; }
.logo-sub { display: block; margin-top: 6px; padding-top: 5px; border-top: 2px solid var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
#main-nav { display: flex; align-items: center; gap: 4px 12px; }
.nav-link { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; padding: 12px 14px; border-bottom: 3px solid transparent; }
.nav-link:hover { color: var(--link); border-bottom-color: var(--pale); }
.nav-link.active { color: var(--link); font-weight: 700; border-bottom-color: var(--accent); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  color: #fff; min-height: 560px; display: flex; align-items: center;
  background-image:
    linear-gradient(90deg, rgba(7,30,47,0.80) 0%, rgba(7,30,47,0.48) 46%, rgba(7,30,47,0) 78%),
    url(img/hero.jpg);
  background-size: cover; background-position: center 35%; background-color: var(--navy);
}
.hero-row { width: 100%; padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.bim-pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.45); padding: 8px 16px 8px 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; backdrop-filter: blur(2px); }
.hero h1 { margin-top: 24px; font-size: clamp(40px, 5.4vw, 70px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; max-width: 640px; }
.hero .bar { margin: 28px 0 24px; }
.lead { font-size: 20px; line-height: 1.55; max-width: 520px; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.badge { flex: none; filter: drop-shadow(0 10px 24px rgba(7,30,47,0.38)); }
.badge text { font-family: 'Manrope', system-ui, sans-serif; }

/* ---------- USP strip ---------- */
.usp { border-bottom: 1px solid var(--line); background: #fff; }
.usp-list { display: flex; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.usp-item { position: relative; flex: 1 1 220px; display: flex; gap: 12px; align-items: flex-start; padding: 24px 14px; }
/* vertical separator: 60% of the item height, centred */
.usp-item::after { content: ""; position: absolute; right: 0; top: 20%; bottom: 20%; width: 1px; background: var(--line); }
.usp-item:first-child { padding-left: 0; }
.usp-item:last-child { padding-right: 0; }
.usp-item:last-child::after { display: none; }
.usp-item strong { display: block; font-size: 16px; font-weight: 800; }
.usp-item span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.usp-bim { background: var(--pale); }
.usp-bim .ic-lg { stroke: var(--btn); stroke-width: 3.4; }
.usp-bim strong { color: var(--deep); }
.usp-bim span { color: #2F4655; }

/* ---------- projects ---------- */
.projects-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.projects-intro { flex: 1 1 260px; min-width: 0; max-width: 340px; }
.projects-intro p { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.more { display: inline-block; margin-top: 22px; font-size: 16px; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.tiles { flex: 3 1 640px; min-width: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.tile { position: relative; flex: 1 1 200px; height: 240px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; text-decoration: none; font-size: 16px; font-weight: 700; background: var(--navy); }
.tile:hover { color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,30,47,0.88) 0%, rgba(7,30,47,0.25) 48%, rgba(7,30,47,0) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile-label { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 16px; }
.tile-label .ic { width: 28px; height: 28px; }

/* ---------- services cards ---------- */
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; transition: border-color .15s, box-shadow .15s; }
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card:hover { border-color: var(--accent); box-shadow: 0 8px 28px rgba(7,30,47,0.08); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-ic { width: 64px; height: 64px; background: var(--pale); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.card-ic .ic { width: 36px; height: 36px; stroke: var(--btn); stroke-width: 3; }
.card-ic-dark { background: rgba(255,255,255,0.1); }
.card-ic-dark .ic { stroke: #6CC4EC; }
.card-no { font-size: 14px; font-weight: 800; color: var(--link); }
.card h3 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.chip { align-self: flex-start; margin-top: auto; background: var(--pale); color: var(--deep); font-size: 13px; font-weight: 800; padding: 6px 12px; }

/* ---------- about ---------- */
.about-row { display: flex; flex-wrap: wrap; gap: 56px; }
.about-copy, .about-side { flex: 1 1 400px; min-width: 0; }
.about-copy .section-lead { margin-top: 20px; }
blockquote { margin-top: 28px; }
blockquote p { font-size: 22px; line-height: 1.45; font-weight: 700; }
blockquote footer { margin-top: 12px; font-size: 15px; color: var(--muted); }
.about-side { display: flex; }
.stats { display: flex; flex-wrap: wrap; gap: 16px; }
.stat { flex: 1 1 180px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stat-n { font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--btn); }
.stat-l { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.about-copy { display: flex; flex-direction: column; }
.about-copy .stats { margin-top: auto; padding-top: 36px; }
.trust { flex: 1; background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.trust-h { margin: 0; padding: 28px 32px; border-bottom: 1px solid rgba(255,255,255,0.18); font-size: 20px; line-height: 1.3; font-weight: 800; }
.trust-body { flex: 1; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.trust-item { display: flex; align-items: flex-start; gap: 18px; }
.trust-item > div { flex: 1 1 0; min-width: 0; }
.trust .card-ic { width: 56px; height: 56px; }
.trust .card-ic .ic { width: 30px; height: 30px; }
.trust-item h4 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; }
.trust-item p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: #D6E6F0; }
.trust-item a { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 700; color: #6CC4EC; text-decoration: none; }
.trust-item a:hover { color: #fff; text-decoration: underline; }
.trust-sep { height: 1px; margin: 0; border: 0; background: rgba(255,255,255,0.18); }
.tools { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 7px 13px; border-radius: 8px; font-size: 14px; font-weight: 700; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); }

/* ---------- logos ---------- */
.logos { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lg { height: 104px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.lg img { width: auto; max-width: 100%; }
.lg.ph { background: var(--tint); border-color: transparent; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; }
.lg.ph .dot { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #C5D4DD; }
.lg-cap { gap: 12px; font-size: 13px; font-weight: 800; line-height: 1.3; text-align: left; color: var(--ink); }
.lg-metsa { gap: 12px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- contact ---------- */
/* ---------- contact ---------- */
.contact { background: #0E6A94; color: #fff; }
.contact-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 56px; padding-top: 56px; padding-bottom: 56px; }
.contact-copy { flex: 1 1 480px; min-width: 0; }
.contact h2 { font-size: 38px; line-height: 1.1; }
.contact-copy p { margin-top: 14px; max-width: 640px; font-size: 18px; line-height: 1.6; }
.contact-cta .btn { flex: none; }
.locate { background: var(--tint); color: var(--ink); padding: 72px 0 80px; }
.locate h2 { font-size: 34px; margin-bottom: 36px; }
.locate-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.loc-card { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person { background: var(--navy); color: #fff; padding: 28px; }
.person-name { margin-top: 16px; font-size: 18px; font-weight: 800; }
.person-role { margin: 2px 0 16px; font-size: 15px; color: #D6E6F0; }
.person-link { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 17px; font-weight: 700; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.person-link:hover { color: #fff; text-decoration: underline; }
.loc-body { padding: 24px 28px 28px; }
.ti { width: 48px; height: 48px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--pale); }
.ti .ic { width: 26px; height: 26px; stroke: var(--btn); stroke-width: 3; }
.ti-sm { width: 44px; height: 44px; }
.ti-sm .ic { width: 24px; height: 24px; }
.ti-navy { background: rgba(255,255,255,0.1); }
.ti-navy .ic { stroke: #6CC4EC; }
.ti-white { background: #fff; }
.loc-head { display: flex; align-items: center; gap: 14px; }
.loc-label { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.loc-label-light { color: #6CC4EC; }
.loc-body h3, .bill-addr h3 { margin-top: 14px; font-size: 22px; line-height: 1.3; font-weight: 800; }
.loc-city { margin-top: 2px; font-size: 17px; color: var(--muted); }
.plot { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--pale); display: flex; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.plot strong { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.plot span { display: block; }
.plot .ti { display: flex; }
.plot-contact { margin-top: 6px; }
.plot-contact a { color: var(--deep); font-weight: 700; text-decoration: none; }
.plot-contact a:hover { text-decoration: underline; }
.loc-map { position: relative; display: block; flex: 1.3 1 480px; min-width: 0; min-height: 560px; border-radius: var(--radius); overflow: hidden; background: #E8EEF2; }
.loc-map img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.map-credit { position: absolute; left: 14px; bottom: 14px; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.92); font-size: 12px; font-weight: 600; color: var(--muted); }
.map-open { position: absolute; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--deep); font-size: 14px; font-weight: 800; box-shadow: 0 2px 8px rgba(7,30,47,0.2); }
.loc-map:hover .map-open { color: var(--navy); text-decoration: underline; }
.loc-bill { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 28px 48px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.bill-addr { flex: 1 1 240px; min-width: 0; }
.bill-col { flex: 1 1 280px; min-width: 0; padding-top: 4px; }
.kv-title { margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; line-height: 1.5; }
.kv dt { font-weight: 600; color: var(--muted); }
.kv dd { font-weight: 700; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #C9DCE8; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
  .card:nth-child(5) { grid-column: 1 / -1; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .usp-item:first-child { padding-left: 14px; }
  .usp-item:last-child { padding-right: 14px; }
  .usp-item { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding: 64px 0; }
  .locate { padding: 56px 0 64px; }
  .contact-cta-row { padding-top: 44px; padding-bottom: 44px; }
  h2, .contact h2, .locate h2 { font-size: 32px; }
  .loc-map { min-height: 420px; }
  .nav-toggle { display: flex; }
  #main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    box-shadow: 0 16px 24px rgba(7,30,47,0.08);
  }
  #main-nav.open { display: flex; }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-link.active { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .hero { min-height: 0; background-image: linear-gradient(180deg, rgba(7,30,47,0.72) 0%, rgba(7,30,47,0.55) 100%), url(img/hero.jpg); background-position: 70% center; }
  .hero-row { padding-top: 48px; padding-bottom: 48px; }
  .badge svg { width: 150px; height: 150px; }
  .lead { font-size: 18px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
}
/* when the hero stacks: pill, headline, lead, badge, buttons */
@media (max-width: 860px) {
  .hero-row { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0; }
  .hero-copy { display: contents; }
  .bim-pill { order: 1; align-self: flex-start; }
  .hero h1 { order: 2; }
  .hero .bar { order: 3; }
  .lead { order: 4; }
  .badge { order: 5; margin-top: 28px; }
  .hero-actions { order: 6; margin-top: 28px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(5) { grid-column: auto; }
  .card { padding: 24px; }
  .usp-item { flex-basis: 100%; }
  .usp-item::after { display: none; }
  .logo-name { font-size: 26px; }
  .logo-sub { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img, .btn, .card { transition: none; }
}
