/* Ace Locksmith Tbilisi — mobile-first stylesheet. No frameworks, no web fonts. */
:root {
  --ink: #03045E;
  --brand: #0096C7;
  --deep: #0077B6;
  --sky: #48CAE4;
  --mist: #CAF0F8;
  --paper: #F4FAFC;
  --text: #1B2B3C;
  --muted: #4E6077;
  --line: #D3E5EE;
  --wa: #25D366;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Georgian", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 76px; /* room for the sticky call bar */
  font: 400 1.0625rem/1.65 var(--font);
  color: var(--text);
  background: #fff;
}
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.125rem); font-weight: 800; }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.icon { flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--ink); font-weight: 700; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 22px;
  border-radius: 8px; border: 0;
  font: 700 1.0625rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
}
.btn-call { background: var(--brand); color: #fff; }
.btn-call:hover { background: var(--deep); color: #fff; }
.btn-wa { background: var(--wa); color: #04331A; }
.btn-wa:hover { background: #1FBF5B; color: #04331A; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; min-height: 64px; }
.brand { display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font: 600 0.9375rem var(--font); cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.site-nav { flex-basis: 100%; padding: 4px 0 16px; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav a { display: block; padding: 11px 2px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--deep); }
.site-nav .lang { display: flex; gap: 8px; margin-top: 14px; }
.site-nav .lang a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9375rem; }
.site-nav .lang a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.header-cta { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #DDF4FA; }
.hero-in { position: relative; z-index: 1; padding-top: 36px; padding-bottom: 68px; }
.hero h1 { color: #fff; max-width: 17em; }
.hero .lead { max-width: 38em; margin: 18px 0 0; font-size: 1.1875rem; line-height: 1.55; }
.hero .cta-buttons { margin-top: 26px; }
.hero--home .hero-in { padding-top: 48px; padding-bottom: 84px; }
.hero-phone {
  display: inline-block; margin-top: 24px;
  color: #fff; font-weight: 800; font-size: clamp(2.125rem, 9.4vw, 4.25rem); line-height: 1.05;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 4px; text-underline-offset: 0.16em;
}
.hero-phone:hover { color: var(--sky); }
.hero--home .btn-call { display: none; } /* the number itself is the call button here */
.hero-key { display: none; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 18px; font-size: 0.9375rem; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--sky); }
.crumbs a { color: #DDF4FA; }
/* The hero's lower edge is cut like the teeth of a key. */
.bitting {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28'%3E%3Cpath fill='%23fff' d='M0 28V14h18l10-10h14l10 14h20l8-8h16l8 12h22l10-16h12l10 10h24l8-6h14l8 4h10v14z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 28px;
}

/* Sections */
.section { padding: 56px 0; }
.section-head { max-width: 44em; margin-bottom: 30px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.125rem; }
.prose { max-width: 800px; }
.prose > h2 { margin-bottom: 18px; }
.section--prose + .section--prose, .section--rows + .section--prose { padding-top: 0; }
.section--features, .section--areas, .section--index { background: var(--paper); }

/* Category cards */
.cards { display: grid; gap: 16px; }
.cards li {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 10px;
}
.cards li:hover { border-color: var(--brand); }
.cards .icon { width: 34px; height: 34px; color: var(--brand); }
.cards h3 { font-size: 1.3125rem; }
.cards h3 a { color: var(--ink); text-decoration: none; }
.cards h3 a::after { content: ""; position: absolute; inset: 0; }
.cards p { color: var(--muted); }
.card-more { margin-top: auto; padding-top: 6px; color: var(--deep); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }

/* Features */
.features { display: grid; gap: 28px; }
.features li { padding-left: 18px; border-left: 3px solid var(--brand); }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--muted); }

/* Steps: a real sequence, so it is numbered */
.steps { display: grid; gap: 26px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 46px 1fr; gap: 0 16px; align-items: start; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--mist); color: var(--ink); font-weight: 800; font-size: 1.1875rem;
}
.steps h3 { align-self: center; margin-top: 10px; }
.steps div { grid-column: 2; margin-top: 4px; color: var(--muted); }

/* Areas */
.areas { display: grid; gap: 14px; }
.areas li { display: grid; grid-template-columns: 26px 1fr; gap: 2px 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.areas .icon { grid-row: span 2; margin-top: 1px; color: var(--brand); }
.areas div { grid-column: 2; color: var(--muted); font-size: 1rem; }

/* Rows: service lists and policy sections */
.rows { border-top: 2px solid var(--ink); }
.rows li { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows h2 { font-size: 1.3125rem; }
.rows div { color: var(--muted); }

/* Service index */
.index { display: grid; gap: 30px; }
.index h3 { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 1.25rem; }
.index h3 a { color: var(--ink); }
.index li { padding: 7px 0; border-bottom: 1px solid var(--line); }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 1.75rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { font-size: 1.125rem; }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 44em; }

/* Link list */
.link-list { display: grid; gap: 10px; }
.link-list a { font-weight: 700; }
.section--related { padding-top: 0; }

/* Call to action band */
.cta-band { padding: 48px 0; background: var(--mist); }
.cta-band .wrap { display: grid; gap: 22px; }
.cta-band p { margin-top: 10px; color: var(--text); font-size: 1.125rem; max-width: 36em; }

/* Contact */
.contact-grid { display: grid; gap: 16px; }
.contact-card { display: block; padding: 28px 24px; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 10px; color: var(--text); text-decoration: none; }
.contact-card--wa { border-top-color: var(--wa); }
.contact-card:hover { border-color: var(--brand); color: var(--text); }
.contact-card--wa:hover { border-color: var(--wa); }
.contact-card .icon { width: 34px; height: 34px; margin-bottom: 10px; color: var(--brand); }
.contact-card--wa .icon { color: #128C4A; }
.contact-value { margin: 8px 0; color: var(--ink); font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.contact-card p:last-child { color: var(--muted); }
.contact-extra { display: grid; gap: 10px; margin-top: 24px; }
.contact-extra li { display: flex; align-items: center; gap: 10px; }
.contact-extra .icon { color: var(--brand); }

/* Footer */
.site-footer { background: var(--ink); color: #C9E9F3; font-size: 1rem; }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.site-footer h2 { margin-bottom: 12px; color: #fff; font-size: 1.0625rem; letter-spacing: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #C9E9F3; }
.site-footer a:hover { color: #fff; }
.footer-brand { margin-bottom: 8px; color: #fff; font-size: 1.1875rem; font-weight: 800; }
.footer-rating { color: #fff; font-weight: 700; }
.footer-bottom { padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(202, 240, 248, 0.2); font-size: 0.9375rem; }

/* Sticky call bar on phones */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  flex-wrap: nowrap; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(3, 4, 94, 0.1);
}
.sticky-cta .btn { flex: 1 1 0; min-width: 0; padding: 10px 8px; }

@media (min-width: 640px) {
  .cards, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .features, .steps, .areas { grid-template-columns: repeat(2, 1fr); }
  .rows li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
  .index { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .header-cta { display: flex; flex-wrap: nowrap; gap: 8px; }
  .header-cta .btn { min-height: 42px; padding: 8px 16px; font-size: 0.9375rem; }
  .header-cta .icon { width: 20px; height: 20px; }
  .section { padding: 80px 0; }
  .hero-in { padding-top: 56px; padding-bottom: 96px; }
  .hero--home .hero-in { padding-top: 84px; padding-bottom: 124px; }
}

@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; margin-bottom: 14px; }
  .steps h3 { margin-top: 0; }
  .steps div { grid-column: 1; }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
  .hero-key { display: block; position: absolute; right: -40px; top: 50%; width: 520px; color: var(--sky); opacity: 0.55; transform: translateY(-58%) rotate(-16deg); }
}

/* Desktop: brand and buttons on the first row, full menu on a second row (fits all three languages). */
@media (min-width: 1000px) {
  .site-header { position: sticky; top: 0; z-index: 40; }
  .header-row { min-height: 68px; }
  .js .nav-toggle, .nav-toggle { display: none; }
  .header-cta { order: 2; }
  .site-nav, .js .site-nav { order: 3; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-basis: 100%; padding: 0; border-top: 1px solid var(--line); }
  .site-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
  .site-nav a { padding: 10px 10px; border: 0; font-size: 0.9375rem; white-space: nowrap; }
  .site-nav > ul:first-child li:first-child a { padding-left: 0; }
  .site-nav a:hover { color: var(--deep); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand); }
  .site-nav .lang { gap: 4px; margin: 0; }
  .site-nav .lang a { padding: 3px 10px; font-size: 0.875rem; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .sticky-cta, .cta-buttons, .hero-key, .bitting { display: none; }
  .hero { background: none; color: #000; }
  .hero h1 { color: #000; }
}
