:root{
  --bg: #070707;
  --panel: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --shadow: 0 18px 70px rgba(0,0,0,.70);
  --radius: 16px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
	padding-top: 70px; /* headera augstums */
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: .2px;
}

a{ color: var(--text); text-decoration:none; }
a:hover{ opacity:.9; }
img{ display:block; max-width:100%; }

.wrap{
  width:min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }
.sub{ color: var(--muted); line-height:1.7; margin: 10px 0 0; }
.small{ font-size: 12px; }

/* Header */
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(7,7,7,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.header__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand{
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}
.nav{
  display:flex;
  align-items:center;
  gap: 16px;
}
.nav a{
  color: var(--muted);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover{ background: rgba(255,255,255,.06); color: var(--text); }
.nav__cta{
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

.lang{ display:flex; gap:8px; }
.lang__btn{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor:pointer;
}
.lang__btn.is-active{
  color: var(--text);
  background: rgba(255,255,255,.10);
}
.brand{
  display: flex;
  align-items: center;
}

.logo{
  height: 45px;       /* vari mainīt uz 32px / 40px pēc vajadzības */
  width: auto;
  display: block;
  filter: brightness(1); /* ja logo ir tumšs – var palielināt */
}
/* Hero */
.hero{
  padding: 48px 0 26px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero h1{
  margin: 0;
  font-size: clamp(20px, 4vw, 30px);
  line-height: 1.05;
  letter-spacing: .02em;
}
.hero__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hero__actions2{ 
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: var(--text);
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 12px 38px rgba(0,0,0,.45);
}
.btn:hover{ background: rgba(255,255,255,.14); }
.btn--ghost{
  background: transparent;
  box-shadow:none;
}
.btn--ghost:hover{ background: rgba(255,255,255,.06); }

/* Sections */
.section{ padding: 34px 0 60px; }
.section--tight{ padding: 28px 0 60px; }
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section__head h2{
  margin:0;
  font-size: 20px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Portfolio grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.shot{
  margin:0;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  cursor: zoom-in;
}
.shot img{
  width:100%;
  height: 260px;
  object-fit: cover;
  filter: none;
  transform: scale(1.01);
  transition: transform .25s ease, filter .25s ease;
}
.shot:hover img{
  transform: scale(1.04);
  filter: none;
}
.shot figcaption{
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
}
.about__grid{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.about__photo{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.03);
  pointer-events: none; /* neļauj klikāt/zoomot */
}

.about__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

/* Teksts */
.about__content h2{
  margin-bottom: 14px;
}

/* Mobile */
@media (max-width: 700px){
  .about__grid{
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .about__photo{
    max-width: 220px;
    margin: 0 auto;
  }
}


/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 18px 0;
}

.footer__row--3{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.footer__col--left{ justify-self: start; }
.footer__col--center{ justify-self: center; }
.footer__col--right{ justify-self: end; }

.footer__centertext{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.footer__logo .logo{
  height: 34px; /* pielāgo */
  width: auto;
  display: block;
}

.social{
  display: flex;
  gap: 10px;
}

.social__a{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.social__a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
}

.social__a svg{
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,.85);
}




/* Form */
.formhead h1{
  margin: 0;
  font-size: 28px;
  letter-spacing: .02em;
}
.form{
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  max-width: 720px;
}
.field{
  display:block;
  margin-bottom: 12px;
}
.field > span, .field legend{
  display:block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
input{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline:none;
}
input:focus{
  border-color: rgba(255,255,255,.28);
  background: rgba(0,0,0,.33);
}
input::placeholder{ color: rgba(255,255,255,.35); }

.field--radio{
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.radio{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  margin-bottom: 10px;
}
.radio input{ width:auto; }

.captcha{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.captcha__q{
  

 
  padding: 10px 12px;
  color: var(--text);
  flex: 1;
  font-weight: 600;
  letter-spacing: .06em;
}
.captcha__reload{
  white-space: nowrap;
}

.form__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Lightbox */
/* ===== Lightbox (iOS safe) ===== */
.no-scroll { overflow: hidden; }

.lightbox{
  position: fixed;
  left: 0; top: 0;
  width: 100vw;

  /* iOS fix: izmanto JS iestatītu augstumu, fallback uz 100dvh/100vh */
  height: var(--lbvh, 100dvh);
  min-height: var(--lbvh, 100dvh);

  display: none;
  align-items: center;
  justify-content: center;

  background: #000;           /* OPAQUE, lai neredz fonu apakšā */
  z-index: 9999;

  overflow: hidden;
  padding: 0;
}

.lightbox.is-open{ display: flex; }

.lightbox__img{
  width: 100vw;
  max-width: 100vw;

  /* lai bilde neuzkāpj zem X un lai nav “par augstu” */
  max-height: calc(var(--lbvh, 100dvh) - 110px);
  height: auto;

  object-fit: contain;

  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

.lightbox__caption{
  position: fixed;
  left: 0; right: 0;
  bottom: calc(10px + env(safe-area-inset-bottom));
  text-align: center;

  color: rgba(255,255,255,.70);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;

  padding: 8px 12px;
  pointer-events: none;
}

/* close button */
.lightbox__close{
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);

  font-size: 26px;
  line-height: 0;
  cursor: pointer;
}

/* nav buttons */
.lightbox__nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);

  width: 46px;
  height: 46px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);

  font-size: 28px;
  cursor: pointer;
}

.lightbox__nav--prev{ left: 10px; }
.lightbox__nav--next{ right: 10px; }

/* Responsive */
@media (max-width: 920px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .shot img{ height: 240px; }
}
@media (max-width: 620px){
  .wrap{ width: min(var(--max), calc(100% - 28px)); }
  .nav{ display:none; } /* minimalist mobile */
  .grid{ grid-template-columns: 1fr; }
  .shot img{ height: 250px; }
  .footer__row{ flex-direction: column; align-items:flex-start; }
}
/* Mobile */
@media (max-width: 620px){
  .footer__row--3{
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }
  .footer__col--left,
  .footer__col--center,
  .footer__col--right{
    justify-self: center;
  }
}