/* kurdiani.ge — Kurdiani Architects portfolio */

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Slab';
  src: url('/fonts/RobotoSlab-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Cyrillic — Montserrat/Roboto Slab ship Latin and Cyrillic as separate
   subsets; the browser only downloads the range a page actually uses. */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-cyrillic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-cyrillic-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-cyrillic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto Slab';
  src: url('/fonts/RobotoSlab-cyrillic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Georgian — neither Montserrat nor Roboto Slab covers Mkhedruli, so these
   sit next in the font stack and the browser picks them per glyph. */
@font-face {
  font-family: 'Noto Sans Georgian';
  src: url('/fonts/NotoSansGeorgian-georgian-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Georgian';
  src: url('/fonts/NotoSansGeorgian-georgian-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Georgian';
  src: url('/fonts/NotoSansGeorgian-georgian-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif Georgian';
  src: url('/fonts/NotoSerifGeorgian-georgian-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #222;
  --fg: #eee;
  --muted: #888;
  --sans: 'Montserrat', 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Roboto Slab', 'Noto Serif Georgian', 'Rockwell', Georgia, serif;
}

* { box-sizing: border-box; }

html {
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
}
body.fade { opacity: 0; }
body.loaded { opacity: 1; transition: opacity 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
  body.fade, body.loaded { opacity: 1; transition: none; }
}

a { color: inherit; text-decoration: none; }
img { border: 0; }

.site-container {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

/* ---------- header ---------- */

.site-header { position: relative; }
.site-header:after { content: ''; display: table; clear: both; }
.logo-wrap { float: left; padding: 36px 0 36px 1.8%; max-width: 100%; }
.logo {
  font-size: 22px;
  line-height: 22px;
}
.logo a {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--fg);
  white-space: pre-wrap;
}
.site-header nav { float: right; padding: 36px 2.1% 30px 0; text-align: right; }
.site-header nav a {
  display: inline-block;
  font-size: 14px;
  line-height: 28px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px;
  transition: color 0.2s ease;
}
.site-header nav a:last-child { padding-right: 0; }
.site-header nav a:hover, .site-header nav a.active { color: var(--fg); }

/* WhatsApp button (header + footer) */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--fg);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
  vertical-align: middle;
}
/* needs to outrank `.site-header nav a`, which would otherwise force
   display:inline-block and collapse the flex layout */
.site-header nav a.wa-btn {
  display: inline-flex;
  padding: 5px 14px;
  line-height: 20px;
  letter-spacing: 0.03em;
}
.wa-btn:hover {
  border-color: #25d366;
  background-color: rgba(37, 211, 102, 0.12);
  color: #fff;
}
.wa-icon { width: 15px; height: 15px; fill: currentColor; flex: none; }
.wa-btn:hover .wa-icon { fill: #25d366; }

.msgr-btn:hover {
  border-color: #0084ff;
  background-color: rgba(0, 132, 255, 0.14);
}
.msgr-btn:hover .wa-icon { fill: #0084ff; }

.call-btn:hover {
  border-color: var(--fg);
  background-color: rgba(255, 255, 255, 0.1);
}
.call-btn:hover .wa-icon { fill: var(--fg); }

/* language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 18px;
  vertical-align: middle;
}
.site-header nav .lang-switch a {
  padding: 0 6px;
  font-size: 13px;
  line-height: 20px;
  color: #6f6f6f;
}
.site-header nav .lang-switch a + a { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.site-header nav .lang-switch a:hover { color: var(--fg); }
.site-header nav .lang-switch a.active { color: var(--fg); }

/* hamburger (mobile) */
.hamburger {
  display: none;
  position: absolute;
  right: 5%;
  top: 40px;
  width: 26px;
  height: 21px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hamburger i {
  display: block;
  width: 100%;
  height: 3px;
  margin-bottom: 6px;
  background-color: var(--fg);
}

.responsive-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--bg);
  text-align: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.responsive-nav.open { display: flex; }
.responsive-nav nav { margin: auto; width: 100%; }
.responsive-nav nav a {
  display: block;
  font-size: 22px;
  line-height: 32px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 30px;
}
.responsive-nav nav a.active { color: var(--fg); }
.responsive-nav nav a.wa-btn {
  display: inline-flex;
  padding: 10px 22px;
  font-size: 18px;
  line-height: 26px;
}
.responsive-nav nav a.wa-btn .wa-icon { width: 19px; height: 19px; }
.responsive-nav nav .lang-switch {
  display: flex;
  justify-content: center;
  margin: 34px 0 0;
}
.responsive-nav nav .lang-switch a {
  padding: 0 14px;
  font-size: 16px;
  line-height: 22px;
  color: #6f6f6f;
}
.responsive-nav nav .lang-switch a.active { color: var(--fg); }
.responsive-nav .close-nav {
  position: fixed;
  right: 5%;
  top: 40px;
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.responsive-nav .close-nav:before, .responsive-nav .close-nav:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 22px;
  background-color: var(--fg);
}
.responsive-nav .close-nav:before { transform: rotate(45deg); }
.responsive-nav .close-nav:after { transform: rotate(-45deg); }
body.nav-open { overflow: hidden; }

/* ---------- work grid (covers) ---------- */

.project-covers { display: flex; flex-wrap: wrap; }
.project-cover {
  display: block;
  position: relative;
  width: 25%;
}
.cover-box {
  position: relative;
  overflow: hidden;
  padding-bottom: 78.2178%; /* 202:158 cover aspect */
}
.cover-box img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.cover-box:after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.project-cover:hover .cover-box:after { opacity: 0.5; }
.details-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 7% 8% 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.project-cover:hover .details-wrap { opacity: 1; }
.details-wrap .title {
  color: #fff;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  padding-bottom: 15px;
}
.details-wrap .date {
  color: #fff;
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
}

/* ---------- project page ---------- */

.page-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 90px 0 60px;
}
.page-header h1 {
  margin: 0;
  padding: 0 0 20px;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 60px;
  line-height: 70px;
  font-weight: 700;
}
.page-header .description {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 26px;
  white-space: pre-line;
}

/* ---------- site footer ---------- */

.site-footer {
  margin-top: 40px;
  padding: 44px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  align-items: start;
  padding: 0 6%;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}
.footer-col { min-width: 0; }
.footer-name {
  color: var(--fg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-inner a { color: var(--muted); transition: color 0.2s ease; }
.footer-inner a:hover { color: var(--fg); }
.footer-cta { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-cta .wa-btn { padding: 9px 18px; font-size: 14px; line-height: 20px; }
.footer-cta .wa-btn:hover { color: #fff; }

.modules { padding: 0 16px; }
.pgrid { display: flex; flex-wrap: wrap; margin: 0 -4px; }
.pgrid .it { position: relative; padding: 4px; }
.pgrid .it .fill { display: block; }
.pgrid .it img {
  position: absolute;
  left: 4px;
  top: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
  cursor: zoom-in;
}
.module-full { padding: 4px 4px; }
.module-full img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.module-video { display: flex; justify-content: center; padding: 8px 4px; }
.module-video video {
  width: 100%;
  max-width: 512px;
  background-color: #191919;
  display: block;
}

/* ---------- about ---------- */

.page-header.about-header {
  max-width: 1120px;
  padding-bottom: 50px;
}
.about {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 30px;
}
.about-portrait { margin: 0; }
.about-portrait img { display: block; width: 100%; height: auto; }

.about-text {
  color: var(--muted);
  font-size: 17px;
  line-height: 29px;
}
.about-text section + section { margin-top: 48px; }
.about-text p { margin: 0 0 18px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text .lead {
  color: #ccc;
  font-size: 21px;
  line-height: 33px;
}
.about-text h2 {
  margin: 0 0 4px;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 27px;
  line-height: 34px;
  font-weight: 700;
}
.about-text .role {
  margin: 0 0 20px;
  color: #6f6f6f;
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.more-link {
  display: inline-block;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}
.more-link:hover { border-color: var(--fg); }
.more-link span { display: inline-block; margin-left: 6px; }

.worklist { list-style: none; margin: 0; padding: 0; }
.worklist li {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 15px;
  line-height: 22px;
}
.worklist li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.worklist .year {
  flex: none;
  width: 104px;
  color: #6f6f6f;
  font-size: 13px;
  line-height: 22px;
}

/* visible to screen readers and crawlers, not on screen */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- prev / next between projects ---------- */

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 50px auto 0;
  padding: 26px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.project-nav a { max-width: 46%; }
.project-nav .pn-next { text-align: right; }
.project-nav .pn-label {
  display: block;
  color: #6f6f6f;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.project-nav .pn-title {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
  transition: color 0.2s ease;
}
.project-nav a:hover .pn-title { color: var(--fg); }

/* ---------- back to top ---------- */

.back-to-top {
  clear: both;
  display: block;
  padding: 60px 0;
  text-align: center;
}
.back-to-top a {
  color: var(--muted);
  font-size: 18px;
  line-height: 18px;
  font-weight: 400;
}
.back-to-top .arrow { display: inline-block; margin-right: 10px; }

.btt-fixed {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.btt-fixed.show { opacity: 1; visibility: visible; }
.btt-fixed svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
body.lightbox-open { overflow: hidden; }
.lightbox img {
  max-width: 100vw;
  max-height: 100vh;
  user-select: none;
}
/* Always visible: these used to be opacity:0 until :hover, which left them
   permanently invisible on touch devices — there is no hover to trigger. */
.lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  top: 0;
  height: 100%;
  width: 30vw;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { opacity: 1; }
.lightbox .lb-prev { left: 0; }
.lightbox .lb-next { right: 0; }
.lightbox .lb-prev svg, .lightbox .lb-next svg {
  position: absolute;
  top: calc(50% - 30px);
  width: 60px;
  height: 60px;
}
.lightbox .lb-prev svg { left: 20px; }
.lightbox .lb-next svg { right: 20px; }
.lightbox .lb-arrow-bg { fill: #696969; opacity: 0.32; transition: opacity 0.15s ease; }
.lightbox .lb-prev:hover .lb-arrow-bg, .lightbox .lb-next:hover .lb-arrow-bg { opacity: 0.55; }

@media (max-width: 540px) {
  .lightbox .lb-prev svg, .lightbox .lb-next svg { width: 44px; height: 44px; }
  .lightbox .lb-prev svg { left: 10px; }
  .lightbox .lb-next svg { right: 10px; }
}
.lightbox .lb-arrow { fill: #fff; }
.lightbox .lb-close {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.lightbox .lb-close:before, .lightbox .lb-close:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 2px;
  height: 24px;
  background-color: #696969;
}
.lightbox .lb-close:before { transform: rotate(45deg); }
.lightbox .lb-close:after { transform: rotate(-45deg); }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 120px 5%; }
.notfound h1 { font-family: var(--serif); font-size: 60px; color: var(--fg); margin: 0 0 20px; }
.notfound a { color: var(--muted); }
.notfound a:hover { color: var(--fg); }

/* ---------- responsive ---------- */

@media (max-width: 932px) {
  .site-header { padding: 40px 5%; }
  .logo-wrap { float: none; width: 100%; padding: 0 39px 0 0; }
  .site-header nav { display: none; }
  .hamburger { display: block; }

  .project-cover { width: 50%; }
  .details-wrap .title { font-size: 22px; line-height: 25px; padding-bottom: 11px; }

  .page-header { padding: 60px 5% 40px; }
  .page-header h1 { font-size: 42px; line-height: 50px; }
  .footer-inner { padding: 0 5%; gap: 26px 40px; }
  .footer-cta { margin-left: 0; width: 100%; }
  .back-to-top a { font-size: 14px; line-height: 14px; }

  .about { grid-template-columns: 1fr; gap: 34px; padding: 0 5% 20px; }
  .about-portrait img { max-width: 420px; }
  .about-text { font-size: 16px; line-height: 27px; }
  .about-text .lead { font-size: 19px; line-height: 30px; }

  /* three CTA buttons wrap 2-then-1 at this width and read as a jumble —
     give them one column each with room to breathe */
  .responsive-nav nav .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 8px 0 0;
  }
  .responsive-nav nav a.wa-btn { width: 250px; justify-content: center; }

  .footer-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .footer-cta .wa-btn { max-width: 260px; justify-content: center; }
}

@media (max-width: 540px) {
  .site-header { padding-top: 30px; padding-bottom: 30px; }
  .hamburger { top: 30px; }
  .logo a { font-size: 21px; line-height: 21px; }

  .project-cover { width: 100%; }
  .details-wrap .title { font-size: 19px; line-height: 22px; padding-bottom: 10px; }

  .page-header h1 { font-size: 28px; line-height: 34px; }

  .about-text h2 { font-size: 23px; line-height: 29px; }
  .worklist li { flex-direction: column; gap: 2px; padding: 12px 0; }
  .worklist .year { width: auto; }
}
