/* Onze Skyline Bar — design tokens
   Paleta extraída do tema bb-theme (WordPress). */

:root {
  --header-bg:      #505443;   /* oliva escuro do header */
  --header-text:    #ffffff;
  --header-hover:   #b7964a;   /* dourado */
  --gold:           #b7964a;
  --gold-dark:      #9c7e3d;
  --body-bg:        #f2f2f2;
  --content-bg:     #ffffff;
  --text:           #4e4e4e;
  --text-soft:      #6b6b6b;
  --text-strong:    #1d1d1b;
  --accent:         #000000;
  --accent-hover:   #2d2d2d;
  --hero-overlay:   rgba(0, 0, 0, 0.55);
  --border:         #e2e2dc;
  --divider:        rgba(0, 0, 0, 0.08);

  --max-w:          1100px;
  --gutter:         clamp(16px, 4vw, 32px);

  --font-sans:      "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:      0 8px 24px rgba(0, 0, 0, 0.12);

  --ease:           cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h:       96px;
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--body-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
  color: var(--text-strong);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 220ms var(--ease);
}
a:hover { color: var(--gold); }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold); color: #fff; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  transition: background 280ms var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__img {
  display: block;
  height: 64px;
  width: auto;
}
@media (max-width: 720px) {
  .brand__img { height: 46px; }
}
.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--header-text);
  padding: 8px 0;
  position: relative;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--header-text);
  margin: 0 auto;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--header-bg);
    flex-direction: column;
    gap: 0;
    padding: 18px var(--gutter) 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
  }
  .site-nav a:last-child { border-bottom: 0; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 220ms var(--ease);
  white-space: nowrap;
}
.btn__arrow { display: inline-block; transition: transform 220ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.btn--gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--text-strong);
}
.btn--ghost:hover {
  background: var(--text-strong);
  color: #fff;
}
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--ghost-light:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* === SECTIONS === */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--content-bg);
}
.section--gray { background: var(--body-bg); }
.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.section__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--text-strong);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.section__lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text);
  line-height: 1.75;
  max-width: 60ch;
  margin-inline: auto;
  font-weight: 300;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 48px);
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* === FOOTER === */
.site-footer {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 56px 0 24px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
  align-items: start;
}
.site-footer h3 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.site-footer p {
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  margin-bottom: 6px;
  font-weight: 300;
}
.site-footer a:hover { color: var(--gold); }
.site-footer__tag {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-style: italic;
}
.site-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  transition: all 220ms var(--ease);
}
.site-footer__social a:hover {
  border-color: var(--gold);
  background: var(--gold);
}
.site-footer__social svg { width: 16px; height: 16px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}
.site-footer__credit { color: rgba(255,255,255,0.6); }
.site-footer__credit:hover { color: var(--gold); }

.site-footer__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-footer__nav a {
  color: rgba(255,255,255,0.6);
  transition: color 200ms var(--ease);
}
.site-footer__nav a:hover { color: var(--gold); }
.site-footer__nav span { color: rgba(255,255,255,0.3); }
@media (max-width: 720px) {
  .site-footer__nav { justify-content: center; }
}

@media (max-width: 720px) {
  .site-footer { padding: 44px 0 20px; }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
    text-align: center;
  }
  .site-footer__social { justify-content: center; }
  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 240ms var(--ease);
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--gold); }
