/* ===== N+D ESTRADO — style.css ===== */
:root {
  --bg: #faf9f7;
  --bg-alt: #f2eee8;
  --ink: #22262a;
  --muted: #5f646a;
  --accent: #a9713f;
  --accent-dark: #8a5a30;
  --line: #e5e0d7;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(30, 30, 30, 0.06);
  --shadow-lg: 0 10px 30px rgba(30, 30, 30, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-radius: 9px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 0.98rem; letter-spacing: 0.04em; }
.brand-text small { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.2s;
}
.site-nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }

.lang-switch { display: flex; gap: 2px; background: var(--bg-alt); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-switch button.active { background: var(--ink); color: #fff; }

.nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,17,20,0.25) 0%, rgba(15,17,20,0.05) 35%, rgba(15,17,20,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-bottom: 72px;
  padding-top: 160px;
  max-width: 1160px;
  width: 100%;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero .eyebrow { color: #e8c9a8; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 720px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.hero-sub {
  margin-top: 18px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 620px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.22s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* ---------- Stats ---------- */
.stats { background: var(--card); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 36px 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
}
.stat-label { color: var(--muted); font-size: 0.92rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 26px;
}

.prose p { margin-bottom: 16px; color: var(--muted); font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Services cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  color: var(--accent-dark);
  border-radius: 12px;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Projects / gallery ---------- */
.project { margin-top: 56px; }
.project-head { max-width: 780px; margin-bottom: 30px; }
.project-head h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 750; margin-bottom: 12px; letter-spacing: -0.01em; }
.project-head p { color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery figure {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-alt);
}

.gallery figure.span2 { grid-column: span 2; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery figure.span2 img { aspect-ratio: 8 / 4.6; }
.gallery figure:hover img { transform: scale(1.04); }

.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(10,12,14,0.72));
  color: #fff;
  font-size: 0.78rem;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.gallery figcaption span { font-weight: 700; color: #e8c9a8; }
.gallery figcaption em { font-style: normal; opacity: 0.95; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-lead { color: var(--muted); max-width: 560px; margin: 0 auto 36px; font-size: 1.05rem; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 34px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.contact-row:last-child { border-bottom: 0; }

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.contact-value { font-size: 1.02rem; font-weight: 600; color: var(--ink); text-decoration: none; }
a.contact-value:hover { color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: #1b1f23;
  color: rgba(255,255,255,0.82);
  padding: 56px 0 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-brand { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 8px; }

.footer-legal p { margin-bottom: 6px; }
.site-footer a { color: #e8c9a8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 14, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(92vw, 1300px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: grid;
  place-items: center;
}
.lightbox button:hover { background: rgba(255,255,255,0.22); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

.lb-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 80vw;
}

/* ---------- Reveal animation (csak ha fut a JS) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 22px;
    gap: 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { min-height: 74vh; }
  .section { padding: 68px 0; }

  .stats-grid { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; }

  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure.span2 { grid-column: span 2; }

  .footer-grid { grid-template-columns: 1fr; gap: 22px; }

  .contact-row { flex-direction: column; gap: 2px; }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
