/* ==========================================================================
   Andréia Freitas — NAVBAR + HERO
   Consome os tokens de system.css. Valores vindos do protótipo aprovado.
   ========================================================================== */

/* o creme mais claro do protótipo vale só para navbar + hero;
   as outras seções continuam com o --cream do sistema */
.af-nav,
.af-hero{
  font-family:var(--display);
  line-height:1.2;
}

/* seta dos botões — SVG no lugar do caractere →, que fica fino nessa fonte */
.af-arrow{
  width:16px;
  height:16px;
  flex:0 0 auto;
  transition:transform .25s;
}

/* ==========================================================================
   NAVBAR — logo à esquerda, links no centro exato, botão à direita
   ========================================================================== */
.af-nav{
  background:var(--slate);
  position:sticky;
  top:0;
  z-index:10;
  box-shadow:0 1px 0 rgba(181,169,100,.18);
}
.af-nav .af-wrap{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  height:84px;
  gap:32px;
}

.af-nav__logo{ justify-self:start; color:inherit; }
.af-nav__logo img{
  height:70px;
  width:auto;
  display:block;
}

.af-nav__links{
  display:flex;
  gap:44px;
  list-style:none;
  margin:0;
  padding:0;
}
.af-nav__links a{
  color:var(--cream);
  text-decoration:none;
  font-size:17px;
  font-weight:500;
  letter-spacing:.04em;
  position:relative;
  padding:6px 0;
  transition:color .2s;
}
.af-nav__links a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:var(--gold);
  transform:scaleX(0);
  transition:transform .25s ease;
}
.af-nav__links a:hover{ color:var(--gold-soft); }
.af-nav__links a:hover::after{ transform:scaleX(1); }

.af-nav__cta{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--gold-soft);
  text-decoration:none;
  font-size:16.5px;
  font-weight:600;
  letter-spacing:.03em;
  white-space:nowrap;
  border:1px solid rgba(181,169,100,.7);
  border-radius:999px;
  padding:9px 20px;
  transition:background .25s, color .25s, border-color .25s;
}
.af-nav__cta:hover{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--ink);
}
.af-nav__cta:hover .af-arrow{ transform:translateX(3px); }

/* hambúrguer — só aparece no mobile */
.af-nav .nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:44px;
  height:44px;
  padding:6px;
  background:none;
  border:none;
  cursor:pointer;
  flex:0 0 auto;
}
.af-nav .nav-toggle span{
  display:block;
  width:100%;
  height:2px;
  background:var(--cream);
  transition:transform .25s var(--ease), opacity .25s var(--ease);
}
.af-nav .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.af-nav .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.af-nav .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.af-hero{
  background:var(--areia);
  overflow:hidden;
}
.af-hero .af-wrap{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:24px;
  min-height:calc(100vh - 84px);
  padding-top:48px;
  padding-bottom:56px;
}

/* ---------- coluna esquerda ---------- */
.af-hero__left{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.af-hero__eyebrow{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--gold-text);
  font-size:clamp(13px, 1.2vw, 16px);
  letter-spacing:.32em;
  text-transform:uppercase;
  font-weight:600;
  margin:0 0 18px;
}
/* tracinho dourado antes */
.af-hero__eyebrow::before{
  content:"";
  width:38px;
  height:1px;
  background:var(--gold);
}

.af-hero__title{
  color:var(--ink);
  font-weight:600;
  text-transform:uppercase;
  font-size:clamp(54px, 7.4vw, 104px);
  line-height:.92;
  letter-spacing:.005em;
  margin:0 0 0 -4px;
}

.af-hero__tagline{
  color:var(--gold-text);
  font-size:clamp(19px, 1.7vw, 24px);
  font-style:italic;
  font-weight:500;
  letter-spacing:.01em;
  line-height:1.35;
  margin:24px 0 0;
}

.af-hero__cta{
  margin-top:34px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--slate);
  color:var(--cream);
  text-decoration:none;
  padding:15px 30px;
  border-radius:999px;
  font-size:17.5px;
  font-weight:600;
  letter-spacing:.04em;
  box-shadow:0 10px 24px -12px rgba(34,51,63,.55);
  transition:background .25s, transform .25s;
}
.af-hero__cta:hover{
  background:var(--slate-2);
  transform:translateY(-1px);
}
.af-hero__cta:hover .af-arrow{ transform:translateX(3px); }

/* ---------- coluna direita: círculo + anel de pincel + foto ---------- */
.af-hero__right{
  position:relative;
  align-self:stretch;
  min-height:520px;
  /* anula o padding-bottom da .af-wrap: a foto encosta na borda de baixo da seção */
  margin-bottom:-56px;
}

.af-stage{
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:min(100%, 530px, calc((100vh - 84px - 40px) / 1.22));
  aspect-ratio:1/1.22;
}

.af-stage__circle{
  position:absolute;
  left:2%;
  top:1%;
  width:96%;
  aspect-ratio:1/1;
  border-radius:50%;
  background:radial-gradient(circle at 50% 38%, #c1b674 0%, var(--gold) 58%, #ab9f5a 100%);
}

.af-brush{
  position:absolute;
  left:-3%;
  top:-4%;
  width:106%;
  aspect-ratio:1/1;
  fill:var(--gold);
  transform:rotate(-8deg);
}

/* sem drop-shadow: ele cria uma mancha cinza onde a foto é cortada.
   left/top/width calibrados para img/andreia-hero.png (1024×1536): cabeça no
   centro horizontal do círculo e corte da seção logo abaixo das mãos */
.af-stage__photo{
  position:absolute;
  left:5.5%;
  top:5.2%;
  width:92%;
  max-width:none;
  display:block;
}

/* ==========================================================================
   RESPONSIVO — celular ≤767 · tablet 768–1023 · notebook 1024–1279
   (desktop ≥1280 fica como está)
   ========================================================================== */

/* barra fixa respeita o recorte do iPhone (no desktop o env() é 0) */
.af-nav{ padding-top:env(safe-area-inset-top, 0px); }

/* menu em tela cheia — só existe de fato no tablet e no celular */
.af-menu{
  position:fixed;
  left:0;
  right:0;
  top:calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  bottom:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:28px;
  padding:32px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px));
  background:var(--slate);
  overflow-y:auto;
  overscroll-behavior:contain;
  animation:af-menu-in .25s var(--ease);
}
.af-menu[hidden]{ display:none; }
/* centraliza na vertical com margens automáticas: se o menu não couber (celular
   deitado), ele começa do topo e rola, em vez de esconder o 1º link atrás da barra */
.af-menu > :first-child{ margin-top:auto; }
.af-menu > :last-child{ margin-bottom:auto; }
@keyframes af-menu-in{ from{ opacity:0; } to{ opacity:1; } }

.af-menu__links{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:4px;
  text-align:center;
}
.af-menu__links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:4px 16px;
  font-size:30px;
  font-weight:500;
  letter-spacing:.01em;
  color:var(--cream);
  text-decoration:none;
  transition:color .2s;
}
.af-menu__links a:hover,
.af-menu__links a:focus-visible{ color:var(--gold-soft); }
.af-menu__rule{
  width:56px;
  height:1px;
  background:var(--gold);
}
.af-menu__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:16px 34px;
  border-radius:999px;
  background:var(--gold);
  color:var(--ink);
  text-decoration:none;
  font-size:18px;
  font-weight:600;
  letter-spacing:.04em;
}

/* a página de trás não rola com o menu aberto */
html.af-menu-aberto{ overflow:hidden; }

@media (min-width:1024px){
  .af-menu{ display:none !important; }
}

/* notebook: com 5 links, menos espaço entre eles para caberem centralizados */
@media (min-width:1024px) and (max-width:1279px){
  .af-nav .af-wrap{ gap:24px; }
  .af-nav__links{ gap:28px; }
}

/* ---------- tablet e celular ---------- */
@media (max-width:1023px){
  .af-nav .af-wrap{
    display:flex;
    height:68px;
    gap:12px;
  }
  .af-nav__logo img{ height:52px; }
  .af-nav__links{ display:none; }
  .af-nav__cta{
    margin-left:auto;
    font-size:15px;
    padding:7px 15px;
  }

  /* hambúrguer 44×44 com traços dourados finos; vira × quando aberto */
  .af-nav .nav-toggle{
    display:flex;
    align-items:center;
    gap:6px;
    padding:0 9px;
  }
  .af-nav .nav-toggle span{
    width:26px;
    height:1.5px;
    background:var(--gold);
  }
  .af-nav .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
  .af-nav .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

  .af-hero .af-wrap{
    grid-template-columns:1fr;
    min-height:auto;
    padding-top:48px;
    gap:28px;
  }
  .af-hero__right{
    min-height:0;
    margin-bottom:-56px;
  }
  .af-stage{
    position:relative;
    left:auto;
    transform:none;
    margin:0 auto;
    width:min(70%, 440px);
  }
  .af-hero__title{ font-size:clamp(48px, 14vw, 84px); }
}

/* ---------- celular ---------- */
@media (max-width:767px){
  .af-nav__cta{ display:none; }          /* fica dentro do menu */
  .af-nav .nav-toggle{ margin-left:auto; }

  .af-stage{ width:min(86%, 360px); }
  .af-hero__cta{
    align-self:center;
    justify-content:center;
    width:100%;
    max-width:360px;
  }
}

/* o reset global de movimento reduzido zera todo transform;
   estes dois são de posição, não de animação */
@media (prefers-reduced-motion: reduce){
  .af-stage{ transform:translateX(-50%) !important; }
  .af-brush{ transform:rotate(-8deg) !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width:1023px){
  .af-stage{ transform:none !important; }
}
