/* ==========================================================================
   TBG — Team Building Georgia
   assets/css/style.css
   ========================================================================== */

:root {
  --deep:      #0E3B3E;
  --deep-2:    #0A2A2C;
  --accent:    #F5A524;
  --accent-2:  #E0871A;
  --ink:       #16191C;
  --body:      #4A5257;
  --mist:      #F4F6F5;
  --line:      #E1E6E5;
  --paper:     #FFFFFF;

  --font-display: "Bricolage Grotesque", "Noto Sans Georgian", system-ui, sans-serif;
  --font-body:    "Inter", "Noto Sans Georgian", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 59, 62, .06), 0 4px 14px rgba(14, 59, 62, .06);
  --shadow-md: 0 8px 30px rgba(14, 59, 62, .12);
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--mist { background: var(--mist); }
.section--deep { background: var(--deep); color: rgba(255,255,255,.82); }
.section--deep h2, .section--deep h3 { color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- eyebrow / headings ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}
.section--deep .eyebrow { color: var(--accent); }
.lede { font-size: 1.08rem; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: var(--shadow-sm); }
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.15;
  letter-spacing: -.01em;
}
.brand__name span { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 500; color: var(--body); letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink);
  font-size: .94rem; font-weight: 500;
  padding: 10px 13px; border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { color: var(--deep); font-weight: 700; }

/* dropdown */
.nav__item { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font-size: .94rem; font-weight: 500; color: var(--ink);
  padding: 10px 13px; border-radius: 8px;
}
.nav__toggle:hover { background: var(--mist); }
.nav__toggle svg { transition: transform .2s ease; }
.nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 240px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: none;
}
.nav__item.is-open .nav__menu { display: block; }
.nav__menu a { display: block; padding: 9px 12px; font-size: .92rem; }

.header .btn { padding: 11px 20px; }
.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header__inner > .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 18px 24px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav__toggle { padding: 13px 8px; width: 100%; text-align: left; justify-content: space-between; }
  .nav__menu { position: static; display: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 10px; padding: 0 0 0 6px; }
  .nav__item.is-open .nav__menu { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--deep);
  color: rgba(255,255,255,.85);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,42,44,.72) 0%, rgba(10,42,44,.86) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  padding: clamp(70px, 11vw, 130px) 0;
  max-width: 760px;
}
.hero h1 { color: #fff; }
.hero__tagline {
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.86);
  max-width: 56ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--ghost { color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero--page .hero__inner { padding: clamp(56px, 8vw, 92px) 0; }

/* breadcrumb */
.crumbs { position: relative; z-index: 1; padding-top: 26px; font-size: .85rem; color: rgba(255,255,255,.6); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ==========================================================================
   Split / about
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ==========================================================================
   Cards
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px 22px 26px; }
.card__body h3 { margin-bottom: .4em; }
.card__body p { color: var(--body); font-size: .95rem; margin: 0; }
.card__link {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .92rem; color: var(--deep);
}
.card__link svg { transition: transform .2s ease; }
.card:hover .card__link svg { transform: translateX(4px); }

/* program tiles */
.tile { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; display: block; aspect-ratio: 5 / 6; background: var(--deep-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.tile:hover img { transform: scale(1.06); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,42,44,0) 38%, rgba(10,42,44,.88) 100%);
}
.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 20px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.grid--tiles { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid--tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid--tiles { grid-template-columns: 1fr; } }

/* ---------- facts ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.facts li {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 500; color: var(--ink);
}
.hero .facts li { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #fff;
}

/* ==========================================================================
   Gallery + lightbox
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.gallery button {
  padding: 0; border: 0; background: var(--mist); cursor: pointer;
  border-radius: 10px; overflow: hidden; aspect-ratio: 1; display: block;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, opacity .2s ease; }
.gallery button:hover img { transform: scale(1.06); opacity: .92; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 24, 25, .93);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.14); border: 0; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 26px;
  margin: 0;
}
.quote__stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 12px; font-size: .95rem; }
.quote p { color: rgba(255,255,255,.88); font-size: .98rem; }
.quote cite { font-style: normal; font-weight: 700; color: #fff; font-family: var(--font-display); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.contact__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact__list a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contact__list a:hover { color: var(--deep); text-decoration: underline; }
.contact__list small { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--body); font-weight: 600; margin-bottom: 2px; }

.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .96rem;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--deep); outline: none; box-shadow: 0 0 0 3px rgba(14,59,62,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: .84rem; color: var(--body); margin: 0; }
.form__status { font-size: .9rem; font-weight: 600; margin: 0; min-height: 1.2em; }
.form__status.is-ok { color: #1B7A4B; }
.form__status.is-err { color: #B3261E; }
.form .btn { justify-self: start; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--ink); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-block: clamp(40px, 6vw, 62px); }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(22,25,28,.8); }
.cta-band .btn--ghost { border-color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--deep-2); color: rgba(255,255,255,.65); padding: 60px 0 28px; font-size: .93rem; }
.footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { width: 44px; height: 44px; border-radius: 10px; }
.footer__brand strong { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.footer__social a:hover { background: var(--accent); color: var(--ink); }
.footer__bottom {
  margin-top: 42px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--deep); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

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

/* ---------- misc ---------- */
.img-fallback { background: var(--mist) !important; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.mb-0 { margin-bottom: 0; }

/* ===== Price calculator page (full-bleed) ===== */
.calc-full iframe {
  display: block; width: 100%;
  height: calc(100vh - var(--header-h));
  min-height: 640px; border: 0; background: #fff;
}

/* facts pill that is a link */
.facts li a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.facts li a::after { content: "→"; }
.facts li:hover { border-color: var(--accent); }

/* keep the header CTA on one line */
.header .btn { white-space: nowrap; }

/* the header row gained two items (Calculator + language) — give it room */
.header .wrap { max-width: 1460px; }
.brand { flex-shrink: 0; }
.nav__toggle { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1400px) {
  .header__inner { gap: 10px; }
  .nav { gap: 0; }
  .nav a, .nav__toggle { font-size: .88rem; padding: 10px 8px; }
  .header .btn { padding: 10px 14px; font-size: .88rem; }
}

/* ===== Language switcher (dropdown) ===== */
.lang-wrap { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .85rem;
  font-weight: 700; cursor: pointer; letter-spacing: .02em; white-space: nowrap;
}
.lang-toggle:hover { background: var(--mist); }
.lang-toggle::after { content: "▾"; font-size: .75em; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 96px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: none; z-index: 120;
}
.lang-wrap.is-open .lang-menu { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer;
  padding: 8px 12px; border-radius: 8px;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink);
}
.lang-menu button:hover { background: var(--mist); }
.lang-menu button[aria-current="true"] { color: var(--deep); font-weight: 800; }

/* Georgian labels are longer — tighten the header so it fits on one row */
html[lang="ka"] .header .wrap { max-width: 1460px; }
html[lang="ka"] .header__inner { gap: 10px; }
html[lang="ka"] .nav { gap: 0; }
html[lang="ka"] .nav a, html[lang="ka"] .nav__toggle { font-size: .84rem; padding: 10px 8px; }
html[lang="ka"] .header .btn { padding: 10px 14px; font-size: .85rem; }
html[lang="ka"] .brand__name span { letter-spacing: .04em; }
@media (min-width: 1025px) and (max-width: 1330px) {
  html[lang="ka"] .nav a, html[lang="ka"] .nav__toggle { font-size: .76rem; padding: 9px 5px; }
  html[lang="ka"] .brand__name span { display: none; }
}
