/* ============================================================
   Capilano Creative — coming soon
   Design Kit: Verde #092B25 · Marrom #BD9773 · Branco #FFFFFF
   Tipografia: Area Extended Thin UPPERCASE (títulos)
               Area Extended Regular (corpo e navegação)
   ============================================================ */

@font-face {
  font-family: "Area Extended";
  src: url("assets/Area-Extended-Thin.otf") format("opentype");
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Area Extended";
  src: url("assets/Area-Extended-Regular.otf") format("opentype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Area Inktrap";
  src: url("assets/Area-Inktrap-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --verde:       #092B25;
  --verde-deep:  #061d19;
  --marrom:      #BD9773;
  --marrom-soft: rgba(189, 151, 115, 0.55);
  --branco:      #FFFFFF;
  --branco-dim:  rgba(255, 255, 255, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 480ms;
  --intro-delay: 180ms;
  --intro-dur: 1.6s;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  color: var(--branco);
  font-family: "Area Extended", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--verde-deep);
  background-image: url("assets/Background.jpeg");
  background-size: cover;
  background-position: center 35%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

::selection { background: var(--marrom); color: var(--verde-deep); }
a { color: inherit; text-decoration: none; }

/* ============================================================
   HEADER — centralizado, não estica até as bordas
   ============================================================ */
.top-bar {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(1140px, calc(100% - 72px));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity var(--dur) var(--ease);
}
.brand:hover img { opacity: 0.75; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.mobile-menu {
  display: none;
}

.nav-link {
  font-family: "Area Extended", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--branco);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--marrom); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--marrom);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }

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

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

/* Área do cliente — bege, um nível mais pesado */
.nav-link--cliente {
  color: var(--branco);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.nav-link--cliente:hover { color: var(--marrom); }
.nav-link--cliente::after { background: var(--marrom-soft); }

.nav-chevron {
  height: 13px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.nav-link--cliente:hover .nav-chevron {
  transform: translateX(4px);
  filter: none;
}

/* ============================================================
   PALCO
   ============================================================ */
.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px;
  gap: 22px;
}

.stage__title {
  margin: 0;
  font-family: "Area Extended", sans-serif;
  font-weight: 100;
  font-size: clamp(38px, 5.7vw, 78px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--branco);
  white-space: nowrap;
  animation: rise var(--intro-dur) var(--ease) var(--intro-delay) both;
}

.stage__dots {
  color: var(--branco);
  margin-left: 0.04em;
}

.stage__subtitle {
  margin: 0;
  font-family: "Area Extended", sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 1.48vw, 21px);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--marrom);
  max-width: 760px;
  white-space: normal;
  animation: rise var(--intro-dur) var(--ease) calc(var(--intro-delay) + 140ms) both;
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .stage__title, .stage__subtitle { animation: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 720px) {
  :root {
    --mobile-gutter: clamp(28px, 7.4vw, 44px);
    --logo-optical-offset: clamp(9px, 2.8vw, 14px);
  }

  body {
    background-attachment: scroll;
    background-position: center top;
  }

  .top-bar {
    top: clamp(26px, 5.4vw, 38px);
    left: var(--mobile-gutter);
    transform: none;
    width: calc(100% - (var(--mobile-gutter) * 2));
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
  }
  .brand {
    margin-left: calc(var(--logo-optical-offset) * -1);
    margin-bottom: -6px;
  }
  .brand img {
    height: clamp(46px, 11.8vw, 58px);
  }
  .top-nav { display: none; }
  .mobile-menu {
    display: block;
    position: relative;
    padding-top: 5px;
  }
  .mobile-menu summary {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5px;
    list-style: none;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span {
    width: 21px;
    height: 1px;
    display: block;
    background: var(--branco);
    transform-origin: center;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .mobile-menu[open] summary span:first-child {
    transform: translateY(5.5px) rotate(28deg);
  }
  .mobile-menu[open] summary span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu[open] summary span:last-child {
    transform: translateY(-5.5px) rotate(-28deg);
  }
  .mobile-menu__panel {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 16px 0 0;
  }
  .mobile-menu__panel .nav-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0;
    font-size: clamp(9px, 2.2vw, 11px);
    letter-spacing: clamp(0.045em, 0.52vw, 0.105em);
    line-height: 1;
    opacity: 0;
  }
  .mobile-menu[open] .mobile-menu__panel .nav-link {
    animation: menuItemRise 560ms var(--ease) both;
  }
  .mobile-menu[data-closing="true"] .mobile-menu__panel .nav-link {
    animation: menuItemLeave 320ms var(--ease) both;
  }
  .mobile-menu[open] .mobile-menu__panel .nav-link:nth-child(1) {
    animation-delay: 70ms;
  }
  .mobile-menu[open] .mobile-menu__panel .nav-link:nth-child(2) {
    animation-delay: 145ms;
  }
  .mobile-menu[data-closing="true"] .mobile-menu__panel .nav-link:nth-child(1) {
    animation-delay: 55ms;
  }
  .mobile-menu[data-closing="true"] .mobile-menu__panel .nav-link:nth-child(2) {
    animation-delay: 0ms;
  }
  .nav-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0;
    font-size: clamp(9px, 2.2vw, 11px);
    letter-spacing: clamp(0.045em, 0.52vw, 0.105em);
    line-height: 1;
  }

  .stage {
    min-height: 100svh;
    padding: 168px var(--mobile-gutter) 84px;
    gap: 18px;
    transform: translateY(-1vh);
  }
  .stage__title {
    font-size: clamp(37px, 9.45vw, 67px);
    letter-spacing: 0.02em;
    white-space: nowrap;
    max-width: calc(100vw - (var(--mobile-gutter) * 2));
  }
  .stage__subtitle {
    font-size: clamp(14.5px, 2.95vw, 18.5px);
    line-height: 1.45;
    white-space: normal;
    max-width: min(520px, 78vw);
  }
}

@media (max-width: 480px) {
  :root {
    --mobile-gutter: clamp(28px, 7.8vw, 36px);
    --logo-optical-offset: clamp(8px, 2.6vw, 11px);
  }

  .top-bar {
    gap: 0;
  }
  .brand {
    margin-bottom: -7px;
  }
  .brand img { height: clamp(45px, 11.8vw, 52px); }
  .top-nav { gap: clamp(10px, 4vw, 16px); }
  .nav-link {
    font-size: clamp(8.5px, 2.25vw, 10px);
    letter-spacing: clamp(0.035em, 0.45vw, 0.07em);
  }
  .nav-link--cliente { gap: 6px; }
  .nav-chevron { height: 10px; }
  .stage {
    padding: 156px var(--mobile-gutter) 72px;
    gap: 16px;
  }
  .stage__title {
    font-size: clamp(33px, 9.35vw, 44px);
    letter-spacing: 0.015em;
    max-width: calc(100vw - (var(--mobile-gutter) * 2));
    white-space: nowrap;
  }
  .stage__subtitle {
    max-width: min(330px, calc(100vw - (var(--mobile-gutter) * 2)));
  }
}

@media (max-width: 360px) {
  .top-nav { gap: 10px; }
  .nav-link {
    font-size: 8.5px;
    letter-spacing: 0.03em;
  }
  .nav-link--cliente { gap: 5px; }
  .stage__title {
    font-size: 32px;
    letter-spacing: 0.01em;
  }
}
