/* Kancelaria Baran — professional one-page */

:root {
  --ink: #0b1520;
  --ink-2: #122233;
  --stone: #eef1f4;
  --stone-2: #f6f7f9;
  --text: #1a2430;
  --text-muted: #5a6775;
  --gold: #a8895a;
  --gold-soft: rgba(168, 137, 90, 0.14);
  --line: rgba(26, 36, 48, 0.12);
  --white: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1100px;
  --narrow: 720px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--stone-2);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover { color: #8a6e42; }

:focus-visible {
  outline: 2px solid rgba(168, 137, 90, 0.75);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.nav-menu a:focus-visible {
  outline-offset: 2px;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

h1 { font-size: clamp(2.35rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); }

h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 650;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

p { margin: 0 0 1rem; color: var(--text-muted); }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 650; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(246, 247, 249, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-logo-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0.55rem;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  margin: 0.3rem 0;
  background: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav-menu a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-menu a:hover { color: var(--ink); }

.nav-cta {
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(168, 137, 90, 0.55);
  color: var(--ink) !important;
  background: var(--gold-soft);
}
.nav-cta:hover { background: rgba(168, 137, 90, 0.22); }

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
  color: var(--stone);
}

.hero-plane { position: absolute; inset: 0; z-index: 0; }

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 21, 32, 0.2) 0%, rgba(11, 21, 32, 0.72) 55%, rgba(11, 21, 32, 0.96) 100%),
    linear-gradient(115deg, #0b1520 0%, #152838 45%, #1a3040 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(196, 165, 116, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 165, 116, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 70% 30%, #000 15%, transparent 75%);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  animation: drift 20s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-1%, -1%, 0); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.brand-hero {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 { color: #f3f0ea; }

.hero-lead {
  font-size: 1.12rem;
  color: rgba(238, 241, 244, 0.78);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: #c4a574;
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(243, 240, 234, 0.35);
  color: #f3f0ea;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block { width: 100%; }

/* Sections */

.section { padding: 5.25rem 0; background: var(--stone-2); }
.section-alt {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 40rem; margin-bottom: 2.5rem; }

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-lead { font-size: 1.12rem; }

.service-list { border-top: 1px solid var(--line); }
.service-list > li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.1rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}
.svc-i {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-top: 0.25rem;
}
.service-list p { margin: 0; }

.person {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.person:last-child { border-bottom: 1px solid var(--line); }

.person-role {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}
.person-contact {
  font-size: 0.95rem;
  margin: 0;
}
.person-contact a { color: var(--ink); }
.person-contact a:hover { color: var(--gold); }

.label-soft {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.client-list {
  display: grid;
  gap: 0.35rem;
}
.client-list li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.client-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 1px;
  background: var(--gold);
}

.map-wrap {
  border: 1px solid var(--line);
  background: var(--stone);
  overflow: hidden;
  min-height: 340px;
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
}
.map-link {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Contact */

.section-contact {
  background:
    radial-gradient(ellipse 55% 45% at 10% 0%, rgba(168, 137, 90, 0.12), transparent 55%),
    var(--stone-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.contact-details li {
  display: grid;
  gap: 0.25rem;
}
.contact-details strong {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-details span,
.contact-details a {
  color: var(--text-muted);
}
.contact-details a:hover { color: var(--ink); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
}
.field .opt {
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--stone-2);
  color: var(--ink);
  font: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(168, 137, 90, 0.45);
  outline-offset: 1px;
  border-color: var(--gold);
}

.field-check label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.field-check input { margin-top: 0.25rem; width: auto; }

.cf-turnstile { margin: 1rem 0; min-height: 65px; }

.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0.5rem 0 0.75rem;
}
.form-status.is-ok { color: #1f6b45; }
.form-status.is-err { color: #8b2e2e; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(238, 241, 244, 0.7);
  padding: 2.25rem 0;
}
.footer-logo {
  display: block;
  width: min(100%, 17.5rem);
  height: auto;
  margin: 0 0 0.65rem;
}
.footer-meta,
.footer-copy {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}
.site-footer a { color: var(--gold); }
.footer-inner { display: grid; gap: 1rem; }

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .contact-grid,
  .person {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 14rem;
    padding: 0.45rem;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(11, 21, 32, 0.08);
    z-index: 60;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 0.75rem 0.85rem; }
  .nav-cta { text-align: center; margin-top: 0.2rem; }

  .hero { min-height: auto; padding: 3.5rem 0 4rem; align-items: flex-end; }
  .brand-hero { letter-spacing: 0.14em; }
  .service-list > li { grid-template-columns: 2.75rem 1fr; }
  .contact-form { padding: 1.25rem; }
  .map-wrap iframe { height: 280px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.5rem, var(--max)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
