/* ============================================
   Dr. Rafael Neiva Lemos — Cirurgia de Cabeça e Pescoço
   Design tokens
   ============================================ */
:root{
  --ink:        #1f424f;
  --ink-700:    #16323c;
  --ink-900:    #0f2229;
  --ink-tint:   #eaf1f1;
  --ink-tint-2: #dbe6e6;
  --body:       #4c6169;
  --muted:      #7c9096;

  --gold:       #c6a870;
  --gold-deep:  #a3833f;
  --gold-tint:  #f6efe0;

  --white:      #ffffff;
  --paper:      #fdfcfa;

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1220px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 50px -20px rgba(15, 34, 41, .35);
  --shadow-card: 0 14px 34px -18px rgba(15, 34, 41, .28);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
input, select, textarea{ font-family: inherit; font-size: 1rem; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}
em{ font-style: italic; color: var(--gold-deep); }

.eyebrow{
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 .9rem;
}

p{ margin: 0 0 1rem; }

/* ============ Accessibility & selection ============ */
:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.faq-q:focus-visible,
.main-nav a:focus-visible,
.footer-social a:focus-visible,
.back-to-top:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,168,112,.28);
}
::selection{ background: var(--gold); color: var(--ink-900); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============ Buttons ============ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-primary{ background: var(--ink); color: var(--white); box-shadow: 0 12px 28px -12px rgba(31,66,79,.55); }
.btn-primary:hover{ background: var(--ink-700); box-shadow: 0 18px 36px -14px rgba(31,66,79,.6); }
.btn-gold{ background: var(--gold); color: var(--ink-900); box-shadow: 0 12px 28px -12px rgba(198,168,112,.55); }
.btn-gold:hover{ background: #d4bb87; box-shadow: 0 18px 36px -14px rgba(198,168,112,.62); }
.btn-outline{ border-color: rgba(31,66,79,.3); color: var(--ink); background: transparent; }
.btn-outline:hover{ border-color: var(--ink); background: var(--ink-tint); }
.btn-lg{ padding: 1.05rem 2rem; }
.btn-block{ width: 100%; }
.btn-small{ padding: .55rem 1.1rem; font-size: .82rem; }

/* ============ Scroll progress ============ */
.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--ink));
  z-index: 1000;
  transition: width .1s linear;
}

/* ============ Brand lockup ============ */
.brand{ display: flex; align-items: center; }
.brand-logo{ height: 40px; width: auto; display: block; }

.footer-logo-badge{ display: inline-flex; align-items: center; }
.footer-logo-img{ height: 36px; width: auto; display: block; }

/* ============ Header ============ */
.site-header{
  position: sticky; top: 0; z-index: 500;
  background: rgba(253,252,250,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31,66,79,.08);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled{ box-shadow: 0 8px 24px -16px rgba(15,34,41,.3); }
.header-inner{ display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; gap: 1.5rem; }
.main-nav ul{ display: flex; gap: 2.1rem; }
.main-nav a{
  font-size: .93rem; font-weight: 600; color: var(--ink);
  position: relative; padding: 4px 0;
}
.main-nav a::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
  background: var(--gold); transition: right .3s var(--ease);
}
.main-nav a:hover::after{ right: 0; }
.header-actions{ display: flex; align-items: center; gap: 1rem; }
.hamburger{
  display: none; background: none; border: none; font-size: 1.35rem; color: var(--ink);
  width: 44px; height: 44px; align-items: center; justify-content: center;
  margin-right: -8px; border-radius: 8px;
}

@media (max-width: 900px){
  .main-nav{
    position: fixed; top: 68px; left: 0; right: 0; height: calc(100vh - 68px);
    background: var(--white); overflow-y: auto;
    padding: 2rem 28px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    border-top: 1px solid rgba(31,66,79,.08);
  }
  .main-nav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul{ flex-direction: column; gap: 1.4rem; }
  .main-nav a{ font-size: 1.1rem; display: inline-block; padding: .5rem 0; }
  .header-actions .btn-primary{ display: none; }
  .hamburger{ display: flex; }
}

/* ============ Hero ============ */
.hero{
  position: relative;
  padding: 74px 0 90px;
  background: linear-gradient(180deg, var(--ink-tint) 0%, var(--paper) 78%);
  overflow: hidden;
}
.hero-inner{
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center;
  position: relative;
}
.hero h1{ font-size: clamp(2.35rem, 1.4rem + 3.2vw, 3.9rem); margin: 0 0 1.3rem; letter-spacing: -.01em; color: var(--ink); }
.hero-lead{ font-size: 1.08rem; line-height: 1.65; max-width: 46ch; color: var(--body); }
.hero-buttons{ display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0 2rem; }

.hero-visual{ position: relative; display: flex; justify-content: center; align-self: flex-end; margin-bottom: -90px; }
.hero-photo-frame{ position: relative; width: min(100%, 480px); }
.hero-photo{
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 24px 40px rgba(15,34,41,.28));
}
.hero-badge{
  position: absolute;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border-radius: 999px;
  font-size: .76rem; font-weight: 700; color: var(--ink);
  padding: .6rem 1.1rem;
}
.hero-badge-top{ top: 8%; left: -14%; letter-spacing: .02em; }

@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; text-align: center; }
  .hero-content{ order: 2; }
  .hero-visual{ order: 1; align-self: center; margin: 0 0 2.5rem; }
  .hero-lead{ margin-inline: auto; }
  .hero-buttons{ justify-content: center; }
  .hero-badge-top{ left: 4%; }
}
@media (max-width: 460px){
  .hero-badge-top{ left: 2%; top: 4%; font-size: .68rem; padding: .5rem .8rem; }
}

/* ============ Section title ============ */
.section-title{ max-width: 640px; margin: 0 auto 3.2rem; text-align: center; }
.section-title h2{ font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.7rem); margin-bottom: .9rem; }
.section-title p{ color: var(--muted); font-size: 1.02rem; margin: 0; }

/* ============ About ============ */
.about{ padding: 100px 0; }
.about-grid{ display: grid; grid-template-columns: .95fr 1.05fr; gap: 4rem; align-items: center; }
.about-visual{ position: relative; }
.about-img-main{ border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.about-img-main img{ width: 100%; height: 430px; object-fit: cover; transition: transform .6s var(--ease); }
.about-img-main:hover img{ transform: scale(1.04); }
.about-img-float{
  position: absolute; right: -8%; bottom: -10%; width: 46%;
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-soft);
  border: 5px solid var(--paper);
}
.about-img-float img{ width: 100%; height: 150px; object-fit: cover; }
.about-img-tag{
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(15,34,41,.72); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-align: center; padding: .45rem 0;
}
.about-hours-card{
  position: absolute; left: -6%; top: -8%;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.3rem;
  display: flex; gap: .8rem; align-items: center;
  width: 232px;
}
.about-hours-card strong{ display: block; font-size: .82rem; margin-bottom: .5rem; }
.about-hours-card ul li{ display: flex; justify-content: space-between; gap: .8rem; font-size: .74rem; color: rgba(255,255,255,.8); padding: .18rem 0; }
.about-hours-card ul li span:last-child{ color: var(--gold); font-weight: 600; }

.about-text h2{ font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 1.1rem; }
.about-text > p{ font-size: 1.02rem; line-height: 1.7; }
.about-points{ margin: 1.8rem 0 2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.about-points li{ display: flex; gap: 1rem; align-items: flex-start; }
.point-icon{
  width: 42px; height: 42px; border-radius: 12px; background: var(--gold-tint);
  color: var(--gold-deep); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.05rem;
}
.about-points strong{ display: block; color: var(--ink); font-size: 1rem; margin-bottom: .2rem; }
.about-points p{ margin: 0; font-size: .93rem; line-height: 1.55; }

@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; gap: 3.5rem; }
  .about-visual{ max-width: 460px; margin: 0 auto; }
  .about-hours-card{ width: 200px; padding: .9rem 1rem; left: 0; top: -6%; }
  .about-img-float{ right: 0; }
}
@media (max-width: 480px){
  .about-visual{ display: flex; flex-direction: column; }
  .about-img-float{ position: relative; width: 52%; margin: -40px 0 0 auto; }
  .about-hours-card{ position: static; margin-top: 1.6rem; width: 100%; order: 1; justify-content: center; text-align: center; }
  .about-hours-card ul li{ justify-content: center; gap: .5rem; }
}

/* ============ Services / Especialidades ============ */
.services-sec{ padding: 100px 0; background: var(--ink-tint); }
.services-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card{
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card::before{
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover{ transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(15,34,41,.32); }
.service-card:hover::before{ transform: scaleX(1); }
.service-icon{
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1.3rem;
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.service-card:hover .service-icon{ transform: translateY(-2px) scale(1.06); }
.service-card h3{ font-size: 1.18rem; margin-bottom: .6rem; transition: color .3s var(--ease); }
.service-card p{ font-size: .92rem; line-height: 1.55; margin: 0; color: var(--body); }

@media (max-width: 900px){ .services-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .services-grid{ grid-template-columns: 1fr; } }

/* ============ CTA band ============ */
.cta-band{
  position: relative;
  background: var(--ink-900);
  padding: 110px 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-media{ position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cta-video{
  position: absolute; left: 50%; top: 50%;
  width: 100%; height: 132%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  will-change: transform;
}
.cta-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,34,41,.82) 0%, rgba(15,34,41,.72) 50%, rgba(15,34,41,.86) 100%);
}
.cta-motif{
  position: absolute; right: -80px; bottom: -100px; width: 420px; height: 520px;
  color: var(--gold); opacity: .1; pointer-events: none; z-index: 1;
}
.cta-inner{ position: relative; z-index: 2; max-width: 620px; text-align: center; margin: 0 auto; }
.cta-inner h2{ color: var(--white); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 1rem; }
.cta-inner p{ color: rgba(255,255,255,.78); font-size: 1.02rem; margin-bottom: 2rem; }

/* ============ Process ============ */
.process{ padding: 100px 0; }
.process-steps{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
.process-step{
  text-align: center;
  padding: 2rem 1.2rem;
  border: 1px solid var(--ink-tint-2);
  border-radius: var(--radius);
  position: relative;
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.process-step:hover{ transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.process-num{
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-tint); color: var(--gold-deep);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  margin-bottom: 1.1rem;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.process-step:hover .process-num{ background: var(--ink); color: var(--gold); transform: scale(1.08); }
.process-step h3{ font-size: 1rem; margin-bottom: .5rem; }
.process-step p{ font-size: .85rem; line-height: 1.5; margin: 0; color: var(--muted); }

@media (max-width: 980px){ .process-steps{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .process-steps{ grid-template-columns: 1fr; } }

/* ============ Trust ============ */
.trust{ padding: 90px 0; background: var(--gold-tint); }
.trust-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.trust-item{
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.3rem 1.8rem;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.trust-item:hover{ transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(15,34,41,.32); }
.trust-icon{
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin: 0 auto 1.2rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.trust-item:hover .trust-icon{ transform: translateY(-3px); box-shadow: 0 14px 26px -12px rgba(15,34,41,.5); }
.trust-item h3{ font-size: 1.08rem; margin-bottom: .6rem; }
.trust-item p{ font-size: .9rem; line-height: 1.55; margin: 0; color: var(--body); }
@media (max-width: 800px){ .trust-grid{ grid-template-columns: 1fr; gap: 1.6rem; max-width: 420px; margin: 0 auto; } }

/* ============ FAQ ============ */
.faq{ padding: 100px 0; }
.faq-grid{ display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
.faq-intro .section-title{ text-align: left; margin: 0 0 1.8rem; }
.faq-help{
  display: flex; align-items: center; gap: .9rem;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  font-size: 1.3rem;
}
.faq-help div{ display: flex; flex-direction: column; font-size: .92rem; }
.faq-help small{ color: rgba(255,255,255,.7); font-size: .74rem; }
.faq-item{ border-bottom: 1px solid var(--ink-tint-2); }
.faq-q{
  width: 100%; text-align: left; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.35rem 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 500;
  transition: color .25s var(--ease);
}
.faq-q:hover{ color: var(--gold-deep); }
.faq-q i{ color: var(--gold-deep); transition: transform .3s var(--ease); flex-shrink: 0; margin-left: 1rem; }
.faq-item.is-open .faq-q i{ transform: rotate(45deg); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item.is-open .faq-a{ max-height: 240px; }
.faq-a p{ padding-bottom: 1.4rem; font-size: .93rem; line-height: 1.6; margin: 0; }

@media (max-width: 900px){ .faq-grid{ grid-template-columns: 1fr; gap: 2.5rem; } .faq-intro .section-title{ text-align: center; margin-inline: auto; } }

/* ============ Contact ============ */
.contact{ padding: 100px 0; background: var(--ink-tint); }
.contact-grid{ display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; }
.contact-form{
  background: var(--white); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field{ display: flex; flex-direction: column; gap: .4rem; }
.form-field label{ font-size: .82rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea{
  border: 1px solid var(--ink-tint-2); border-radius: var(--radius-sm);
  padding: .8rem 1rem; color: var(--ink); background: var(--paper);
  transition: border-color .2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline: none; border-color: var(--gold);
}
.contact-info{ display: flex; flex-direction: column; gap: 1.4rem; }
.contact-info-item{ display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon{
  width: 42px; height: 42px; border-radius: 12px; background: var(--ink);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item strong{ display: block; color: var(--ink); font-size: .95rem; margin-bottom: .2rem; }
.contact-info-item p{ margin: 0; font-size: .9rem; line-height: 1.5; }
.contact-info-item a:hover{ color: var(--gold-deep); }

@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } .form-row{ grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.site-footer{ background: var(--ink-900); color: rgba(255,255,255,.75); padding: 70px 0 0; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-col p{ font-size: .88rem; line-height: 1.6; margin: 1.1rem 0 1.3rem; max-width: 32ch; }
.footer-social{ display: flex; gap: .8rem; }
.footer-social a{
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.footer-social a:hover{ background: var(--gold); border-color: var(--gold); color: var(--ink-900); }
.footer-col h4{ color: var(--white); font-family: var(--font-body); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-links li, .footer-contact li{ margin-bottom: .8rem; font-size: .89rem; }
.footer-links a:hover{ color: var(--gold); }
.footer-contact li{ display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact a:hover{ color: var(--gold); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; font-size: .8rem; color: rgba(255,255,255,.55); }
.footer-bottom-row{ position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.footer-credit{ position: absolute; right: 66px; display: flex; align-items: center; opacity: .85; transition: opacity .25s var(--ease); flex-shrink: 0; }
.footer-credit:hover{ opacity: 1; }
.footer-credit-logo{ height: 15px; width: auto; display: block; }

@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr; gap: 2.4rem; text-align: left; } }
@media (max-width: 700px){
  .footer-bottom-row{ flex-direction: column; gap: .8rem; }
  .footer-credit{ position: static; }
}

/* ============ Scroll reveal & entrance motion ============ */
.reveal{
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.reveal-in{ opacity: 1; transform: none; }
.reveal-left{ transform: translateX(-28px); }
.reveal-right{ transform: translateX(28px); }
.reveal-scale{ transform: translateY(20px) scale(.96); }
.reveal-zoom{ transform: scale(.94); }
.reveal-left.reveal-in, .reveal-right.reveal-in,
.reveal-scale.reveal-in, .reveal-zoom.reveal-in{ transform: none; }

.hero-content .eyebrow{ animation: heroUp .8s .05s both var(--ease); }
.hero-content h1{ animation: heroUp .8s .16s both var(--ease); }
.hero-content .hero-lead{ animation: heroUp .8s .28s both var(--ease); }
.hero-buttons{ animation: heroUp .8s .4s both var(--ease); }
.hero-visual{ animation: heroIn 1s .3s both var(--ease); }
@keyframes heroUp{ from{ opacity: 0; transform: translateY(24px); } to{ opacity: 1; transform: none; } }
@keyframes heroIn{ from{ opacity: 0; transform: translateY(20px) scale(.97); } to{ opacity: 1; transform: none; } }

.main-nav a.is-active{ color: var(--gold-deep); }
.main-nav a.is-active::after{ right: 0; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1 !important; transform: none !important; }
  .hero-content *, .hero-visual{ animation: none !important; }
}

/* ============ Back to top ============ */
.back-to-top{
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--gold); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.back-to-top.is-visible{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover{ background: var(--gold); color: var(--ink-900); }
