/* Quinta da Caçabrava · estilos do site */

:root {
  --ink: #36302A;
  --ground: #F6F3EC;
  --alt: #ECE6DA;
  --gold: #7A6240;
  --gold-light: #B9A590;
  --muted: #574C3F;
  --muted-light: #D2C8B8;
  --olive: #3A3D2C;
  --line: #D8CFBF;
  --line-dark: #4A4239;
  --line-olive: #565A45;
  --display: 'Cinzel', Georgia, serif;
  --body: 'Almarai', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 32px;
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 300 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .03em; line-height: 1.12; margin: 0; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.k { font: 500 11px/1.4 var(--body); letter-spacing: .34em; text-transform: uppercase; }
.k-gold { color: var(--gold); }
.k-light { color: var(--gold-light); }
.lead { font-size: 18px; line-height: 1.8; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--ground); padding: 12px 18px; }
.skip:focus { top: 16px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 16px 30px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { background: #4A4239; color: var(--ground); }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-line-light { border-color: rgba(246,243,236,.8); color: var(--ground); background: transparent; }
.btn-line-light:hover { background: var(--ground); color: var(--ink); }
.btn-gold { background: var(--gold-light); color: var(--ink); }
.btn-gold:hover { background: #CDBBA6; color: var(--ink); }

/* Cabeçalho */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 340px; pointer-events: none; z-index: -1;
  background: linear-gradient(to bottom, rgba(246,243,236,.94) 0%, rgba(246,243,236,.86) 14%, rgba(246,243,236,.72) 28%, rgba(246,243,236,.54) 42%, rgba(246,243,236,.36) 56%, rgba(246,243,236,.2) 70%, rgba(246,243,236,.08) 84%, rgba(246,243,236,0) 100%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 24px; padding-bottom: 24px; }
.nav-side { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; flex: 1 1 280px; }
.nav-side.right { justify-content: flex-end; }
.nav-side a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.nav-side a[aria-current="page"] { color: var(--gold); border-bottom: 1px solid var(--gold); }
.nav-side a.nav-cta { padding: 13px 22px; border: 1px solid rgba(54,48,42,.7); }
.nav-side a.nav-cta:hover { background: var(--ink); color: var(--ground); }
.brand { flex: 0 0 auto; display: block; }
.brand img { width: 250px; }
.menu-btn { display: none; width: 48px; height: 48px; background: transparent; border: 0; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* Menu móvel */
.mobile-nav { position: fixed; inset: 0; z-index: 50; background: var(--ink); color: var(--ground); display: flex; flex-direction: column; padding: 16px 24px 32px; transform: translateY(-100%); visibility: hidden; transition: transform .35s ease, visibility .35s; }
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav .close { align-self: flex-end; width: 48px; height: 48px; background: transparent; border: 0; color: var(--ground); font-size: 32px; font-weight: 300; cursor: pointer; }
.mobile-nav nav { display: flex; flex-direction: column; margin-top: 32px; }
.mobile-nav nav a { color: var(--ground); text-decoration: none; font: 400 30px/1.2 var(--display); letter-spacing: .03em; padding: 12px 0; }
.mobile-nav nav a.accent { color: var(--gold-light); }
.mobile-nav .phone { margin-top: auto; color: var(--muted-light); }

/* Hero */
.hero { position: relative; height: 920px; min-height: 100svh; max-height: 1100px; background: #2E2924; color: var(--ground); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(54,48,42,.42); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 60px; }
.hero h1 { font-size: clamp(40px, 5vw, 71px); max-width: 1000px; margin-bottom: 100px; }
.hero p.k { color: #E4D6BC; margin-bottom: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Secções */
.section { padding: 140px 0; }
.intro { max-width: 980px; margin: 0 auto; text-align: center; padding: 140px var(--gutter) 120px; }
.intro p.statement { font-size: 26px; line-height: 1.4; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 52px); }
.section-head .lead { flex: 0 1 420px; }

/* Casamentos */
.weddings { padding: 0 0 140px; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 14px; }
.mosaic figure { margin: 0; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.mosaic figure:hover img { transform: scale(1.03); }
.m-a { grid-column: span 8; grid-row: span 5; }
.m-b { grid-column: span 4; grid-row: span 3; }
.m-c { grid-column: span 4; grid-row: span 2; }
.m-d, .m-e, .m-f { grid-column: span 4; grid-row: span 3; }
.day { margin-top: 96px; }
.day > .k { text-align: center; margin-bottom: 40px; }
.day ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.day img { width: 100%; height: 360px; object-fit: cover; margin-bottom: 22px; }
.day .k { margin-bottom: 10px; }
.day h3 { font: 400 17px/1.4 var(--body); letter-spacing: 0; margin-bottom: 8px; }
.day p { font-size: 16px; color: var(--muted); }
.center-cta { margin-top: 64px; text-align: center; }

/* Galeria */
.gallery-band { background: var(--ink); color: var(--ground); padding: 130px 0; }
.gallery-band h2, .gallery-page h1 { color: var(--ground); }
.filters { display: flex; flex-wrap: wrap; gap: 0 30px; }
.filters button { min-height: 44px; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--muted-light); cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.filters .n { letter-spacing: .1em; }
.grid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 12px; }
.grid-photos .ph { margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--line-dark); cursor: zoom-in; display: block; width: 100%; height: 100%; }
.grid-photos .ph.tall { grid-row: span 2; }
.grid-photos .ph[hidden] { display: none; }
.grid-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .4s; }
.grid-photos .ph:hover img { transform: scale(1.04); }

/* Outras celebrações */
.others h2 { font-size: clamp(30px, 3vw, 41px); margin-bottom: 64px; }
.others-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px; }
.others article { display: flex; flex-wrap: wrap; gap: 28px; }
.others article img { flex: 1 1 220px; min-width: 0; height: 460px; object-fit: cover; }
.others .text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.others h3 { font-size: 27px; margin: 16px 0 18px; }
.others .text p:not(.k) { font-size: 16px; color: var(--muted); margin-bottom: 26px; }
.others .btn { align-self: flex-start; }

/* Experiência */
.experience { background: var(--alt); padding: 130px 0; }
.experience h2 { font-size: clamp(30px, 3vw, 41px); margin-bottom: 64px; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.exp-grid > div { padding: 36px 28px 36px 0; border-bottom: 1px solid var(--line); }
.exp-grid .k { margin-bottom: 14px; }
.exp-grid h3 { font: 400 17px/1.4 var(--body); letter-spacing: 0; margin-bottom: 10px; }
.exp-grid p:not(.k) { font-size: 16px; color: var(--muted); }

/* Citação */
.quote-band { position: relative; height: 720px; background: #2E2924; color: var(--ground); overflow: hidden; }
.quote-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.quote-band .overlay { position: absolute; inset: 0; background: rgba(54,48,42,.45); display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); }
.quote-band figure { margin: 0; max-width: 880px; text-align: center; }
.quote-band blockquote { margin: 0 0 32px; font: 400 clamp(26px, 3vw, 40px)/1.3 var(--display); letter-spacing: .03em; }
.quote-band figcaption { color: #E4D6BC; }
.quote-band.testimonial blockquote { font: 300 clamp(19px, 1.9vw, 25px)/1.65 var(--body, 'Almarai', sans-serif); letter-spacing: 0; }
.quote-band.testimonial figure { max-width: 820px; }
@media (max-width: 900px) { .quote-band.testimonial { height: auto; min-height: 560px; display: flex; } .quote-band.testimonial .overlay { position: relative; flex: 1; padding-top: 72px; padding-bottom: 72px; } }

/* História */
.history .inner { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.history img { flex: 1 1 380px; min-width: 0; height: 680px; object-fit: cover; }
.history .text { flex: 1 1 480px; min-width: 0; }
.history h2 { font-size: clamp(30px, 3vw, 41px); margin: 20px 0 28px; }
.history .lead { margin-bottom: 40px; }
.history .motto { font-size: 17px; color: var(--gold); }

/* Contacto */
.contact { background: var(--ink); color: var(--ground); padding: 130px 0; }
.contact .inner { display: flex; flex-wrap: wrap; gap: 96px; }
.contact .info { flex: 1 1 380px; min-width: 0; }
.contact h2 { font-size: clamp(32px, 3.2vw, 44px); margin: 20px 0 28px; }
.contact .info > p:not(.k) { font-size: 18px; color: var(--muted-light); margin-bottom: 48px; }
.contact dl { margin: 0 0 44px; display: flex; flex-direction: column; gap: 22px; font-size: 18px; }
.contact dt { color: var(--gold-light); margin-bottom: 6px; }
.contact dd { margin: 0; }
.contact dd a { color: var(--ground); text-decoration: none; }
.contact dd a:hover { color: var(--gold-light); }
.form { flex: 1 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 36px 40px; align-content: start; }
.form label { font: 500 11px/1.4 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); display: flex; flex-direction: column; gap: 8px; }
.form input:not([type="checkbox"]), .form select, .form textarea { font: 300 17px var(--body); color: var(--ground); background: transparent; border: 0; border-bottom: 1px solid #6B5F50; border-radius: 0; padding: 10px 0 12px; width: 100%; -webkit-appearance: none; appearance: none; }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--gold-light) 50%), linear-gradient(135deg, var(--gold-light) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--gold-light); }
.form input::-webkit-calendar-picker-indicator { filter: invert(.85); }
.form .full { grid-column: 1 / -1; }
.form .consent { flex-direction: row; align-items: flex-start; gap: 12px; text-transform: none; letter-spacing: 0; font: 300 15px/1.6 var(--body); color: var(--muted-light); }
.form .consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--gold-light); }
.form .consent a { color: var(--ground); }
.form button { justify-self: start; }

/* Perguntas frequentes */
.faq .inner { display: flex; flex-wrap: wrap; gap: 72px; }
.faq .side { flex: 1 1 340px; min-width: 0; }
.faq h2 { font-size: clamp(30px, 3vw, 41px); margin: 20px 0 24px; }
.faq .side p:not(.k) { font-size: 17px; color: var(--muted); margin-bottom: 32px; }
.faq .list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 22px 0; font: 400 18px/1.4 var(--display); letter-spacing: .03em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--body); color: var(--gold); flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 26px; max-width: 720px; font-size: 17px; color: var(--muted); }

/* Rodapé */
.site-footer { background: var(--olive); color: var(--muted-light); font-size: 15px; line-height: 1.8; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 56px; padding: 96px 0 64px; border-bottom: 1px solid var(--line-olive); }
.site-footer .col { flex: 1 1 220px; min-width: 0; }
.site-footer .col:first-child { flex-basis: 280px; }
.site-footer .col img { width: 230px; margin-bottom: 24px; }
.site-footer .k { color: var(--gold-light); margin-bottom: 18px; }
.site-footer a { color: var(--ground); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .links a { display: block; padding: 4px 0; }
.site-footer .links a.wa { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-light); padding: 10px 0; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 32px 0 48px; font-size: 13px; }
.site-footer .bottom nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer .bottom nav a { padding: 12px 0; }
.site-footer .bottom nav a.dim { color: var(--muted-light); }

/* WhatsApp flutuante (computador) */
.wa-float { position: fixed; right: 28px; bottom: 28px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--gold-light); border: 1px solid var(--gold-light); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); color: var(--ground); }

/* Barra de contacto (telemóvel) */
.contact-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; min-height: 64px; padding-bottom: env(safe-area-inset-bottom); align-items: center; justify-content: center; gap: 12px; width: 100%; background: var(--ink); color: var(--ground); border: 0; border-top: 1px solid var(--line-dark); cursor: pointer; letter-spacing: .26em; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 38; background: rgba(20,18,15,.55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 39; background: var(--ground); padding: 24px 20px 12px; transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.sheet.open { transform: none; visibility: visible; }
.sheet.open + .sheet-backdrop, .sheet-backdrop.open { opacity: 1; visibility: visible; }
.sheet .k { margin-bottom: 8px; }
.sheet a { display: flex; align-items: center; gap: 14px; min-height: 56px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 17px; }
.sheet a:last-child { border-bottom: 0; }

/* Página da galeria */
.gallery-page { background: var(--ink); color: var(--ground); }
.gallery-page .site-header::before { height: 300px; }
.gallery-hero { text-align: center; padding: 220px 0 56px; }
.gallery-hero h1 { font-size: clamp(38px, 4.6vw, 65px); margin: 28px 0 24px; }
.gallery-hero p:not(.k) { max-width: 560px; margin: 0 auto 52px; font-size: 18px; color: var(--muted-light); }
.gallery-hero .filters { justify-content: center; gap: 0 36px; }
.gallery-main { padding-bottom: 110px; }
.gallery-main .grid-photos { grid-auto-rows: 220px; }
.gallery-cta { border-top: 1px solid var(--line-dark); text-align: center; padding: 110px 0; }
.gallery-cta h2 { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 40px; color: var(--ground); }
.gallery-cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(40,35,30,.97); display: flex; align-items: center; justify-content: center; padding: 32px; }
.lightbox[hidden] { display: none; }
.lightbox .frame { width: 100%; max-width: 1200px; display: flex; flex-direction: column; gap: 18px; }
.lightbox img { width: 100%; height: 76vh; object-fit: contain; }
.lightbox .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted-light); }
.lightbox .round { min-width: 52px; min-height: 52px; background: transparent; border: 1px solid #6B5F50; color: var(--ground); border-radius: 50%; cursor: pointer; font-size: 20px; }
.lightbox .x { position: absolute; top: 20px; right: 20px; min-width: 52px; min-height: 52px; background: transparent; border: 0; color: var(--ground); font-size: 34px; font-weight: 300; cursor: pointer; }

/* Páginas simples (privacidade, obrigado, 404) */
.plain { padding: 200px 0 120px; }
.plain .narrow { max-width: 760px; }
.plain h1 { font-size: clamp(34px, 4vw, 52px); margin: 24px 0 32px; }
.plain h2 { font-size: 24px; margin: 48px 0 16px; }
.plain p, .plain li { color: var(--muted); font-size: 17px; }
.plain p + p { margin-top: 14px; }
.plain ul { padding-left: 20px; }
.plain .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Responsivo */
@media (max-width: 1100px) {
  .mosaic { grid-auto-rows: 90px; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .nav-side { display: none; }
  .brand img { width: 160px; }
  .menu-btn { display: inline-flex; }
  .site-header::before { height: 200px; }
  .gallery-page .site-header::before { height: 180px; }
  .hero { height: 780px; min-height: 0; }
  .hero picture img { object-position: center; }
  .hero-content { justify-content: flex-end; padding: 0 24px 64px; }
  .hero p.k { font-size: 10px; letter-spacing: .2em; }
  .hero h1 { margin-bottom: 64px; }
  .section, .gallery-band, .experience, .contact { padding: 72px 0; }
  .intro { padding: 80px 28px 64px; }
  .intro p.statement { font-size: 22px; }
  .weddings { padding-bottom: 72px; }
  .section-head { margin-bottom: 28px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; }
  .mosaic figure { grid-column: span 1; grid-row: auto; height: 240px; }
  .m-a { grid-column: span 2 !important; height: 250px !important; }
  .m-f { display: none; }
  .day { margin-top: 56px; }
  .day img { height: 300px; }
  .grid-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 6px; }
  .gallery-main .grid-photos { grid-auto-rows: 150px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 0 22px; padding-bottom: 4px; }
  .gallery-hero .filters { justify-content: flex-start; }
  .others h2, .experience h2 { margin-bottom: 36px; }
  .others article img { height: 380px; }
  .quote-band { height: 520px; }
  .history img { height: 420px; }
  .history .inner, .contact .inner, .faq .inner { gap: 40px; }
  .faq summary { font-size: 16px; min-height: 56px; padding: 16px 0; }
  .site-footer .top { padding: 56px 0 40px; gap: 32px; }
  .wa-float { display: none; }
  .contact-bar { display: flex; }
  body { padding-bottom: 64px; }
  .gallery-hero { padding: 150px 0 32px; }
  .plain { padding: 140px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ===== Animações ===== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Cabeçalho fixo que se adapta ao scroll */
.site-header { position: fixed; transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease); }
.site-header::before { transition: opacity .5s var(--ease); }
.header-inner { transition: padding .5s var(--ease); }
.brand img { transition: width .5s var(--ease); }
.site-header.scrolled { background: rgba(246,243,236,.97); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }
.site-header.scrolled .brand img { width: 170px; }
.site-header.hide { transform: translateY(-100%); }
.nav-side a:not(.nav-cta) { position: relative; }
.nav-side a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: .34em; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-side a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-side a[aria-current="page"] { border-bottom: 0; }
.nav-side a[aria-current="page"]::after { transform: scaleX(1); }

/* Entrada da primeira imagem */
@keyframes qc-kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes qc-rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes qc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qc-down { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes qc-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.js .hero picture img { animation: qc-kenburns 9s var(--ease) both; }
.js .hero::after { animation: qc-fade 1.6s ease both; }
.js .site-header .header-inner { animation: qc-down 1.2s var(--ease) .5s both; }
.js .hero-content > * { animation: qc-rise 1.4s var(--ease) both; }
.js .hero-content > :nth-child(1) { animation-delay: .7s; }
.js .hero-content > :nth-child(2) { animation-delay: .95s; }
.js .hero-content > :nth-child(3) { animation-delay: 1.3s; }
.hero picture { will-change: transform; }

/* Revelação ao fazer scroll: texto sobe, imagens abrem */
.js .intro > *, .js .section-head > *, .js .day > .k, .js .day li, .js .center-cta,
.js .others > .wrap > p, .js .others h2, .js .others .text > *, .js .experience h2, .js .exp-grid > div,
.js .quote-band figure > *, .js .history .text > *, .js .contact .info > *, .js .form > :not(input[type="hidden"]),
.js .faq .side > *, .js .faq details, .js .site-footer .col, .js .site-footer .bottom,
.js .gallery-hero .wrap > *, .js .gallery-cta .wrap > *, .js .plain .narrow > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .mosaic figure, .js .others article > img, .js .history .inner > img, .js .grid-photos .ph {
  opacity: 0; clip-path: inset(10% 6% 10% 6%);
  transition: opacity 1.2s var(--ease), clip-path 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .day li img { clip-path: inset(10% 6% 10% 6%); transition: clip-path 1.6s var(--ease); transition-delay: var(--d, 0s); }
.js .mosaic figure img, .js .others article > img, .js .history .inner > img, .js .grid-photos .ph img, .js .day li img { transform: scale(1.12); transition: transform 2.2s var(--ease), opacity .4s; transition-delay: var(--d, 0s); }
.js .in { opacity: 1 !important; transform: none !important; clip-path: inset(0 0 0 0) !important; }
.js .in img, .js .in.img-self { transform: none; }
.js li.in img { clip-path: inset(0 0 0 0); transform: none; }
.js .others article > img.in, .js .history .inner > img.in { transform: none; }
.mosaic figure:hover img, .grid-photos .ph:hover img { transform: scale(1.04) !important; transition-delay: 0s !important; }

/* Faixa da citação com movimento suave */
.quote-band img { height: 125%; top: -12.5%; will-change: transform; }

/* Perguntas: resposta aparece com suavidade */
.faq details[open] p { animation: qc-rise .6s var(--ease) both; }
.faq summary::after { transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }

/* Botões com brilho discreto */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-20deg); transition: left .8s var(--ease); pointer-events: none; }
.btn:hover::after { left: 130%; }

@media (max-width: 900px) {
  .site-header.scrolled .brand img { width: 130px; }
  .site-header.scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .js *, .js *::before, .js *::after { animation: none !important; }
  .js .intro > *, .js .section-head > *, .js .day > .k, .js .day li, .js .center-cta,
  .js .others > .wrap > p, .js .others h2, .js .others .text > *, .js .experience h2, .js .exp-grid > div,
  .js .quote-band figure > *, .js .history .text > *, .js .contact .info > *, .js .form > *,
  .js .faq .side > *, .js .faq details, .js .site-footer .col, .js .site-footer .bottom,
  .js .gallery-hero .wrap > *, .js .gallery-cta .wrap > *, .js .plain .narrow > *,
  .js .mosaic figure, .js .others article > img, .js .history .inner > img, .js .grid-photos .ph, .js .day li img,
  .js .mosaic figure img, .js .grid-photos .ph img, .js .day li img {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
}
