/* New Camp — newcamp.ge
 * Static stylesheet. Fonts are self-hosted subsets:
 *   Inter (SIL OFL 1.1) for Latin, Noto Sans Georgian (SIL OFL 1.1) for Mkhedruli.
 */

@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face {
  font-family: "NC Georgian";
  src: url("../fonts/noto-sans-georgian-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F;
}

:root {
  --navy: #13263C;
  --navy-dark: #0E2033;
  --mint: #45D0AF;
  --mint-hover: #5ADBBC;
  --mint-pale: #E8F8F3;
  --mint-tint: #E6F7F2;
  --teal: #19A8AC;
  --teal-text: #0B6B6F;
  --teal-icon: #12898D;
  --surface: #F7F9FC;
  --gray: #52667A;
  --border: #E0E7EE;
  --white: #FFFFFF;

  --font: "Inter", "NC Georgian", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 12px;
  --header-h: 72px;
  --section-pad: clamp(64px, 8vw, 104px);
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--teal);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

html.i18n-pending body { visibility: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
a { color: inherit; }

h1, h2, h3 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
p { text-wrap: pretty; }

/* Georgian has no letter case and runs longer: relax tracking and size a touch. */
html[lang="ka"] h1, html[lang="ka"] h2, html[lang="ka"] h3 { letter-spacing: 0; line-height: 1.25; }
html[lang="ka"] h2 { font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.15rem); }
html[lang="ka"] h3 { font-size: 1.0625rem; }
html[lang="ka"] .eyebrow { letter-spacing: 0.04em; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
/* Sections and the H1 receive focus programmatically after in-page links; no ring. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { box-shadow: none; outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--gray);
  margin-bottom: 14px;
}
.eyebrow--light { color: #B9C7D6; }

.lead { font-size: 1.0625rem; line-height: 1.7; }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--mint); color: var(--navy); box-shadow: 0 6px 18px -8px rgba(69, 208, 175, .7); }
.btn-primary:hover { background: var(--mint-hover); transform: translateY(-1px); }
.btn-primary .icon { transition: transform .2s ease; }
.btn-primary:hover .icon { transform: translateX(3px); }

.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 4px;
  font-weight: 600; text-decoration: none;
}
.btn-link span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.btn-link:hover span { text-decoration-color: currentColor; }
.btn-link--light { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
  flex: none;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--navy); color: var(--white);
  border-radius: 4px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
}
.brand-mark--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.brand-word { font-weight: 600; font-size: 1.125rem; letter-spacing: 0.12em; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 6px; list-style: none; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 12px;
  font-size: 0.9375rem; font-weight: 500; color: var(--navy);
  text-decoration: none; border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.nav-list a:hover { background: var(--surface); color: var(--teal-text); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding-left: 22px; border-left: 1px solid var(--border);
}
.lang-btn {
  min-width: 44px; min-height: 40px; padding: 6px 8px;
  border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--gray); cursor: pointer;
  transition: color .2s, background-color .2s;
}
.lang-btn:hover { color: var(--navy); background: var(--surface); }
.lang-btn[aria-pressed="true"] { color: var(--navy); background: var(--mint-tint); }
.lang-sep { color: #A9B6C3; font-size: 0.875rem; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px; margin-right: -8px;
  border: 0; background: transparent; border-radius: 10px;
  cursor: pointer; color: var(--navy);
  place-items: center;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 26px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -8px; }
.menu-toggle-bars::after { top: 8px; }
.site-header[data-menu-open="true"] .menu-toggle-bars { background: transparent; }
.site-header[data-menu-open="true"] .menu-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.site-header[data-menu-open="true"] .menu-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 899.98px) {
  html.js .menu-toggle { display: grid; }
  html.js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -18px rgba(19, 38, 60, .35);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  html.js .site-header[data-menu-open="true"] .site-nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  html.js .nav-list { flex-direction: column; gap: 0; }
  html.js .nav-list li + li { border-top: 1px solid var(--border); }
  html.js .nav-list a { display: flex; min-height: 54px; padding: 12px 4px; font-size: 1.0625rem; border-radius: 0; }
  html.js .nav-list a:hover { background: transparent; }
  html.js .lang-switch { margin-top: 12px; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  html.js .lang-btn { min-height: 44px; min-width: 52px; }
}

/* Without JavaScript: no toggle, links wrap under the logo, language buttons hidden. */
html:not(.js) .lang-switch { display: none; }
@media (max-width: 899.98px) {
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #D5DEE8;
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(25, 168, 172, .16), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-position: center, -1px -1px, -1px -1px;
}
.hero::after { /* soften the grid toward the bottom edge */
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(14, 32, 51, .55));
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: clamp(480px, 42vw, 580px);
  padding-block: 72px;
}
.hero-title {
  color: var(--white);
  font-size: clamp(2.375rem, 1.3rem + 3.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero-title .line { display: block; }
@media (min-width: 1200px) { html[lang="en"] .hero-title .line { white-space: nowrap; } }
html[lang="ka"] .hero-title { font-size: clamp(2rem, 1.15rem + 2.6vw, 3.1rem); line-height: 1.2; letter-spacing: 0; }
.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
  color: #C9D4E0;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero .btn-primary {
  background: var(--navy-dark); color: var(--white);
  border: 1.5px solid var(--mint);
  box-shadow: 0 8px 22px -12px rgba(69, 208, 175, .55);
}
.hero .btn-primary:hover { background: #183049; border-color: var(--mint-hover); }
.hero :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--white); }

.hero-art {
  position: relative;
  align-self: center;
  margin-right: calc(-1 * var(--gutter));
  pointer-events: none;
}
.hero-art img {
  width: 118%; max-width: none; height: auto;
  margin-left: -8%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 55% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 72% at 55% 50%, #000 62%, transparent 100%);
}

@media (max-width: 959.98px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 48px 0; gap: 0; }
  .hero-art { margin: -8px auto -24px; width: min(100%, 560px); margin-right: auto; }
  .hero-art img { width: 100%; margin-left: 0; }
}
@media (max-width: 599.98px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-link { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--surface { background: var(--surface); }
.section--white { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }

/* Services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(19, 38, 60, .04);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #CDE9E2; box-shadow: 0 14px 30px -20px rgba(19, 38, 60, .3); transform: translateY(-2px); }
.card-icon, .value-icon, .contact-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--mint-tint);
  color: var(--teal-icon);
}
.card-icon svg, .value-icon svg, .contact-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.9688rem; line-height: 1.65; }

@media (max-width: 959.98px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) {
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; align-items: flex-start; gap: 18px; padding: 20px; }
  .card-icon { width: 48px; height: 48px; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-intro h2 { margin-bottom: 20px; }
.value-list { display: grid; gap: 14px; }
.value {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.value h3 { margin-bottom: 6px; }
.value p { font-size: 0.9688rem; }
@media (max-width: 859.98px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 399.98px) { .value { flex-direction: column; gap: 14px; padding: 20px; } }

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  counter-reset: none;
}
.step { position: relative; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 50%;
  background: var(--mint); color: var(--navy);
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 0 6px var(--mint-tint);
}
.step:not(:last-child)::after { /* connector to the next step */
  content: ""; position: absolute;
  top: 20px; left: 64px; right: -16px;
  height: 1px; background: #C7D3DE;
}
.step-body h3 { margin-bottom: 8px; font-size: 1.1875rem; }
.step-body p { max-width: 22rem; }
.scope-note {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem; line-height: 1.6;
  max-width: 62rem;
}

@media (max-width: 767.98px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: flex; gap: 20px; padding-bottom: 28px; }
  .step:last-child { padding-bottom: 0; }
  .step-num { margin-bottom: 0; flex: none; }
  .step:not(:last-child)::after { top: 52px; bottom: 6px; left: 19.5px; right: auto; width: 1px; height: auto; }
  .step-body { padding-top: 6px; }
}

/* PoC CTA */
.cta-section { background: var(--surface); padding-bottom: var(--section-pad); }
.cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 16px;
  border: 1px solid #9FDCC9;
  background: linear-gradient(115deg, #D3F3E9 0%, #BDEBDC 100%);
}
.cta-copy { max-width: 720px; }
.cta-copy h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin-bottom: 10px; color: var(--navy-dark); }
html[lang="ka"] .cta-copy h2 { font-size: clamp(1.375rem, 1.05rem + 1.2vw, 1.85rem); }
.cta-copy .eyebrow { color: #064E52; font-weight: 700; }
.cta-copy p:last-child { color: #1E3348; font-size: 1.0625rem; }
.btn-cta { flex: none; }
.cta-panel .btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px -10px rgba(19, 38, 60, .6); }
.cta-panel .btn-primary:hover { background: var(--navy-dark); }
@media (max-width: 859.98px) {
  .cta-panel { flex-direction: column; align-items: stretch; }
  .btn-cta { width: 100%; }
}

/* Contact */
.contact { border-top: 1px solid var(--border); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.contact-grid h2 { margin-bottom: 16px; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: var(--navy);
  transition: border-color .2s, box-shadow .2s;
}
a.contact-item:hover { border-color: var(--mint); box-shadow: 0 10px 24px -18px rgba(19, 38, 60, .4); }
.contact-item--static { background: var(--surface); }
.contact-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact-label { font-size: 0.8125rem; color: var(--gray); }
.contact-value { font-weight: 600; font-size: 1.0625rem; }
.contact-arrow { color: var(--teal-icon); transition: transform .2s; }
a.contact-item:hover .contact-arrow { transform: translateX(3px); }
@media (max-width: 859.98px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 32px;
  padding-block: 28px;
}
.brand--footer .brand-mark { width: 34px; height: 34px; font-size: 0.875rem; }
.brand--footer .brand-word { font-size: 1rem; }
.footer-text { font-size: 0.875rem; flex: 1 1 280px; }
.footer-email {
  font-size: 0.9375rem; font-weight: 600; color: var(--navy);
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.footer-email:hover { color: var(--teal-text); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 639.98px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-text { flex: none; }
}

@media (max-width: 479.98px) {
  .cta-panel { padding: 28px 22px; }
  .contact-item { gap: 14px; padding: 16px; }
  .contact-icon { width: 44px; height: 44px; }
  .contact-value { font-size: 1rem; }
  html[lang="ka"] h2, html[lang="ka"] .cta-copy h2 { font-size: 1.375rem; }
  html[lang="ka"] .hero-title { font-size: 1.875rem; }
}

/* Very narrow phones */
@media (max-width: 359.98px) {
  .brand-word { font-size: 1rem; letter-spacing: 0.1em; }
  .btn { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .card:hover, .btn-primary:hover { transform: none; }
}

@media (forced-colors: active) {
  .btn, .card, .value, .contact-item, .cta-panel { border: 1px solid CanvasText; }
  .lang-btn[aria-pressed="true"] { outline: 2px solid Highlight; }
}
