:root {
  --bg: #f0ead8;
  --panel: #ede7d5;
  --ink: #1a1714;
  --muted: #6b6459;
  --line: #d4ccba;
  --accent: #7a6a4f;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; }

/* ─── HERO ──────────────────────────────── */

main { padding: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 38%) 1fr;
  grid-template-rows: 1fr;
  min-height: 100vh;
  background: var(--panel);
  position: relative;
}

/* LEFT PANEL */
.hero-left {
  grid-column: 1;
  grid-row: 1;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 2.2rem 2.4rem;
  padding-top: calc(68px + 2.2rem);
  display: grid;
  grid-template-rows: 1fr auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-icon { flex-shrink: 0; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 0.3rem 0.55rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--muted);
  transition: background 120ms, color 120ms;
}

.lang-btn + .lang-btn { border-left: 1px solid var(--line); }

.lang-btn.is-active {
  background: var(--ink);
  color: #fff;
}

/* middle: content */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.hero-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 36ch;
  margin: 0;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 0.6rem;
}

.stats article {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-icon {
  display: flex;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.stats strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stats span {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
}

/* bottom bar */
.hero-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.hero-bottom small {
  font-size: 0.74rem;
  color: var(--muted);
}

/* RIGHT */
.hero-right {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  background: #c2c8c4;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FIXED TOP NAV */
.hero-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 2.4rem;
  background: rgba(237, 231, 213, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.hero-nav a:not(.brand) {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 150ms;
}

.hero-nav a:not(.brand):hover { opacity: 1; }

/* ─── SECTIONS ──────────────────────────── */

.section {
  margin: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: clamp(1.4rem, 2.5vw, 2.4rem);
}

.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.section-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1rem; font-weight: 700; }

.about-copy, .ref-note {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 0.8rem;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.service-grid article {
  background: var(--bg);
  padding: 1.3rem;
  display: grid;
  gap: 0.5rem;
}

.service-grid article + article { border-left: 1px solid var(--line); }

.service-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.service-grid p { color: var(--muted); font-size: 0.84rem; margin: 0; line-height: 1.6; }

/* References */
.references-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.ref-card {
  padding: 0.8rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  background: var(--bg);
}

.ref-index {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.ref-title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.contact-grid article {
  padding: 1.2rem 1.4rem;
  background: var(--bg);
  display: grid;
  gap: 0.35rem;
}

.contact-grid article + article { border-left: 1px solid var(--line); }

.contact-grid h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-grid p { margin: 0; font-size: 0.88rem; }
.contact-grid a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer {
  padding: 1rem 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ─── RESPONSIVE ─────────────────────── */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 340px;
    min-height: auto;
  }
  .hero-left { grid-row: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-right { grid-column: 1; grid-row: 2; min-height: auto; }
  .hero-nav { gap: 1rem; padding: 0.7rem 1.2rem; }
  .nav-links { gap: 1.2rem; }
  .references-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .contact-grid article:nth-child(2n+1) + article { border-left: 1px solid var(--line); border-top: 0; }
}

@media (max-width: 620px) {
  .hero-nav { flex-wrap: wrap; padding: 0.6rem 0.8rem; gap: 0.5rem; }
  .nav-links { order: 3; width: 100%; justify-content: center; gap: 1rem; }
  .hero-left { padding-top: calc(80px + 1.5rem); }
  .stats { gap: 1.2rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .references-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .section-head-inline { flex-direction: column; align-items: flex-start; }
}

/* ─── ANIMATIONS ─────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise .5s ease both; }
  .hero-content > *:nth-child(2) { animation-delay: 70ms; }
  .hero-content > *:nth-child(3) { animation-delay: 140ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
