/* ============================================================
   evakuatori.ge — modern front-end (2026 redesign)
   Dark theme + brand yellow. No frameworks.
   ============================================================ */

:root {
  --brand:        #ffc326;
  --brand-dark:   #e0a800;
  --bg:           #14161a;
  --bg-raised:    #1c1f26;
  --bg-sunken:    #0e1013;
  --border:       #2b2f38;
  --text:         #e8eaed;
  --text-dim:     #a9afb8;
  --on-brand:     #14161a;
  --radius:       14px;
  --radius-sm:    8px;
  --container:    72rem;
  --font-body:    'HelveticaGeo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-bold:    'HelveticaGeoBold', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --shadow:       0 10px 30px rgba(0, 0, 0, .35);
  --transition:   .2s ease;
}

@font-face {
  font-family: 'HelveticaGeo';
  src: url('Helvetica/Linotype-HelveticaNeueLTGEO55Roman.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'HelveticaGeoBold';
  src: url('Helvetica/Linotype-HelveticaNeueLTGEO75Bold.ttf') format('truetype');
  font-display: swap;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-bold); line-height: 1.2; margin: 0 0 .6em; color: #fff; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
p  { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

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

/* ---------- layout ---------- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--raised { background: var(--bg-raised); }
.section-head { text-align: center; max-width: 46rem; margin-inline: auto; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .kicker {
  color: var(--brand); font-family: var(--font-bold); letter-spacing: .12em;
  text-transform: uppercase; font-size: .85rem; display: block; margin-bottom: .5rem;
}
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand); color: var(--on-brand); padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- site header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 22, 26, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.site-logo { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--font-bold); }
.site-logo img { width: 40px; height: 40px; }
.site-logo b { color: var(--brand); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .55rem .9rem; color: var(--text); border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover { background: var(--bg-raised); color: var(--brand); }
.lang-switch { display: flex; gap: .15rem; margin-left: .5rem; }
.lang-switch a {
  padding: .35rem .5rem; font-size: .82rem; font-family: var(--font-bold);
  color: var(--text-dim); border-radius: var(--radius-sm);
}
.lang-switch a:hover { color: var(--brand); }
.lang-switch a.active { color: var(--brand); background: rgba(255, 195, 38, .12); }
@media (max-width: 56rem) { .lang-switch { margin-left: auto; } }
.header-call {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  background: var(--brand); color: var(--on-brand) !important; font-family: var(--font-bold);
  padding: .55rem 1.1rem; border-radius: 999px; transition: transform var(--transition), background var(--transition);
}
.header-call:hover { background: var(--brand-dark); transform: translateY(-1px); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .5rem .65rem; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 1.35rem; height: 2px; background: var(--text); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

@media (max-width: 56rem) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--bg-raised); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); margin: 0; padding: .75rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .85rem 1rem; }
  .header-call { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img, .hero__bg picture { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14, 16, 19, .92) 30%, rgba(14, 16, 19, .55) 70%, rgba(14, 16, 19, .35));
}
.hero .wrap { padding-block: clamp(4rem, 12vw, 8.5rem); max-width: var(--container); }
.hero h1 { max-width: 17ch; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero .lead { color: var(--text-dim); max-width: 46ch; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2.5rem; padding: 0; list-style: none; color: var(--text-dim); }
.hero__badges b { color: #fff; display: block; font-size: 1.15rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-bold); border-radius: 999px; padding: .85rem 1.7rem;
  border: 2px solid transparent; cursor: pointer; font-size: 1.05rem;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.btn:active { transform: scale(.98); }
.btn--brand { background: var(--brand); color: var(--on-brand); }
.btn--brand:hover { background: var(--brand-dark); color: var(--on-brand); transform: translateY(-2px); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--big { font-size: 1.2rem; padding: 1rem 2.2rem; }

/* ---------- cards ---------- */
.card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card__icon {
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  background: rgba(255, 195, 38, .12); border-radius: var(--radius-sm); margin-bottom: 1rem;
}
.card__icon img { width: 2rem; height: 2rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--text-dim); margin: 0; }

/* ---------- stats ---------- */
.stats { text-align: center; }
.stats .stat b {
  display: block; font-family: var(--font-bold); color: var(--brand);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.2rem); line-height: 1;
}
.stats .stat span { color: var(--text-dim); }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.9rem; height: 2.9rem; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-family: var(--font-bold);
  font-size: 1.3rem; border-radius: 50%;
}

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin-inline: auto; }
.faq details {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: .75rem; overflow: hidden;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1rem 1.25rem; font-family: var(--font-bold); color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 1.25rem 1.15rem; color: var(--text-dim); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: var(--on-brand); text-align: center; }
.cta-band h2 { color: var(--on-brand); }
.cta-band p { color: rgba(20, 22, 26, .75); }
.cta-band .btn--dark { background: var(--bg); color: #fff; }
.cta-band .btn--dark:hover { background: var(--bg-sunken); transform: translateY(-2px); }

/* ---------- prose (long text pages) ---------- */
.prose { max-width: 46rem; }
.prose p { color: var(--text-dim); }
.prose strong, .prose b { color: var(--text); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; }
.checklist li::before { content: '\2713'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---------- contact ---------- */
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .contact-item__icon {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(255, 195, 38, .12); color: var(--brand); border-radius: var(--radius-sm); font-size: 1.2rem;
}
.contact-item b { color: #fff; display: block; }
.contact-item a { word-break: break-word; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--bg-raised); border-bottom: 1px solid var(--border); }
.page-hero .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero p { color: var(--text-dim); max-width: 60ch; margin: 0; }
.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 .75rem; font-size: .9rem; color: var(--text-dim); }
.breadcrumbs li + li::before { content: '/'; margin-right: .4rem; opacity: .5; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-sunken); border-top: 1px solid var(--border); margin-top: auto; }
.site-footer .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); }
.site-footer h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--brand); }
.site-footer .copyright {
  border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem;
  color: var(--text-dim); font-size: .9rem; text-align: center;
}

/* ---------- floating contact buttons ---------- */
.float-contact { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: flex; flex-direction: column; gap: .6rem; }
.float-contact a {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.4rem; box-shadow: var(--shadow); transition: transform var(--transition);
}
.float-contact a:hover { transform: scale(1.08); }
.float-contact .fc-call { background: var(--brand); color: var(--on-brand); }
.float-contact .fc-msgr { background: #0084ff; color: #fff; }

/* ---------- scroll reveal (JS adds .in) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   Legacy-compat layer — keeps old Bootstrap-marked-up modules
   (legal pages, 404, blog) readable under the new theme.
   ============================================================ */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.row { display: flex; flex-wrap: wrap; gap: 1.5rem 0; margin-inline: -12px; }
.row > [class*="col-"] { padding-inline: 12px; width: 100%; }
@media (min-width: 48rem) {
  .col-md-4, .col-sm-4 { width: 33.333%; }
  .col-md-6, .col-sm-6 { width: 50%; }
  .col-md-8 { width: 66.666%; }
  .col-md-3 { width: 25%; }
}
[class*="section_padding"] { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section_header { font-family: var(--font-bold); }
.text-center { text-align: center; }
.form-control {
  width: 100%; background: var(--bg-sunken); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem 1rem; font: inherit;
}
.form-control:focus { border-color: var(--brand); outline: none; }
.form-group { margin-bottom: 1rem; }
.theme_button {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--brand); color: var(--on-brand);
  font-family: var(--font-bold); border: 0; border-radius: 999px; padding: .8rem 1.6rem; cursor: pointer;
}
.theme_button:hover { background: var(--brand-dark); }
.sr-only, .hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.highlight { color: var(--brand); }
.divider_30_3, hr { border: 0; border-top: 2px solid var(--border); margin-block: 1.25rem; }
