/* Gavamito – styly */
:root {
  --black: #0d0d0d;
  --ink: #1a1a1a;
  --stone: #f3f1ec;
  --paper: #ffffff;
  --muted: #6d6a64;
  --line: rgba(0, 0, 0, .12);
  --line-light: rgba(255, 255, 255, .16);
  --accent: #b9a27f;
  --radius: 4px;
  --max: 1200px;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.eyebrow.dark { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95em 1.8em;
  font: 500 .92rem/1 var(--font);
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--black); }
.btn-light:hover { background: var(--accent); color: var(--black); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 22px 0;
  transition: background .3s, padding .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(13, 13, 13, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-symbol { width: 40px; height: auto; }
.brand-word { width: 140px; height: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem;
  position: relative; padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .3s;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { right: 0; }
.nav-cta { padding: .8em 1.4em; font-size: .8rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--black); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 65%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-content { position: relative; padding-top: 160px; padding-bottom: 56px; }
.hero h1 { max-width: 14ch; }
.hero-lead { max-width: 46ch; font-size: 1.15rem; color: rgba(255,255,255,.85); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-facts {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light); padding: 28px 0 40px;
}
.fact { display: flex; align-items: center; gap: 18px; padding-right: 20px; }
.fact strong { font-size: 2.6rem; font-weight: 300; line-height: 1; }
.fact span { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.4; }

/* About */
.about { background: var(--stone); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-text { font-size: 1.08rem; color: #3a3833; }
.about-text a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.checks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.checks li { position: relative; padding-left: 28px; font-weight: 500; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Services */
.services { background: var(--black); color: #fff; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 720px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.service {
  padding: 36px 28px 40px 0; border-right: 1px solid var(--line-light);
  transition: background .3s;
}
.service + .service { padding-left: 28px; }
.service:last-child { border-right: 0; }
.service-num { display: block; color: var(--accent); font-size: .85rem; letter-spacing: .15em; margin-bottom: 2.4rem; }
.service p { color: rgba(255,255,255,.68); font-size: .98rem; font-weight: 300; }

/* Project */
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}
.g-item { overflow: hidden; border-radius: var(--radius); background: #ddd; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.g-item:hover img { transform: scale(1.05); }
.g-large { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }
.project-details { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 90px); margin-top: clamp(48px, 6vw, 80px); }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.specs div:first-child { border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.specs dd { margin: 0; font-weight: 500; }
.timeline ol { list-style: none; padding: 0; margin: 0 0 2rem; counter-reset: s; }
.timeline li { position: relative; padding: 0 0 22px 30px; border-left: 1px solid var(--line); margin-left: 6px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--black);
}
.timeline li:first-child::before { background: var(--accent); border-color: var(--accent); }
.timeline li strong { display: block; }
.timeline li span { color: var(--muted); font-size: .95rem; }

/* Process */
.process { background: var(--stone); }
.process .eyebrow { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: var(--paper); padding: 36px 30px; border-radius: var(--radius); }
.steps li > span {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--black); font-weight: 500; margin-bottom: 1.6rem;
}
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Partners */
.partners { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners-inner { display: flex; align-items: center; gap: clamp(24px, 6vw, 80px); padding: 34px 0; flex-wrap: wrap; }
.partners p { margin: 0; text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--muted); }
.partners a { font-size: 1.35rem; font-weight: 500; text-decoration: none; color: #8a877f; transition: color .25s; }
.partners a:hover { color: var(--black); }

/* Contact */
.contact { background: var(--black); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); }
.contact-lead { color: rgba(255,255,255,.72); font-weight: 300; font-size: 1.1rem; max-width: 40ch; }
address { font-style: normal; margin: 2.2rem 0 1.2rem; color: rgba(255,255,255,.8); line-height: 1.8; }
address strong { color: #fff; font-weight: 500; }
.contact-links { line-height: 2.4; }
.contact-links a { color: #fff; font-size: 1.3rem; text-decoration: none; border-bottom: 1px solid var(--accent); }
.footer-meta a { color: inherit; text-decoration: none; }
.footer-meta .credit { margin-top: 10px; font-size: .8rem; opacity: .75; }
.footer-meta .credit a { border-bottom: 1px solid rgba(255,255,255,.3); transition: color .2s, border-color .2s; }
.footer-meta .credit a:hover { color: #fff; border-color: var(--accent); }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.6); }
.field input, .field select, .field textarea {
  font: inherit; color: #fff; background: rgba(255,255,255,.04);
  border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .2s, background .2s; width: 100%;
}
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.07); }
.field .invalid { border-color: #e07b6a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 1.4em; margin: 0; font-size: .95rem; color: var(--accent); }

/* Footer */
.site-footer { background: #070707; color: rgba(255,255,255,.55); padding: 48px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { width: 120px; height: auto; opacity: .9; }
.footer-meta p { margin: 0; text-align: right; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: min(1400px, 100%); object-fit: contain; border-radius: var(--radius); }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1;
  cursor: pointer; padding: 12px 18px; opacity: .75; transition: opacity .2s; font-family: var(--font); font-weight: 300;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service { padding: 32px 24px 36px; border-bottom: 1px solid var(--line-light); }
  .service + .service { padding-left: 24px; }
  .service:nth-child(2n) { border-right: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .g-wide { grid-column: span 1; }
  .g-item:last-child { grid-column: span 3; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0; background: var(--black);
    flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn) { font-size: 1.5rem; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--black); }
  .nav { height: 100vh; height: 100dvh; }
  .nav-toggle { display: block; z-index: 2; }
  .brand { z-index: 2; }
  .about-grid, .project-details, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .g-item:last-child { grid-column: span 1; }
  .footer-meta p { text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: min(100% - 36px, var(--max)); }
  .brand-word { width: 118px; }
  .brand-symbol { width: 34px; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 22px 0 28px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0; }
  .fact strong { font-size: 1.9rem; }
  .fact span { font-size: .74rem; }
  .checks { grid-template-columns: 1fr; }
  .service-grid, .steps { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0; border-right: 0; }
  .service-num { margin-bottom: 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .gallery { grid-auto-rows: 130px; gap: 8px; }
}
