/* ════════════════════════════════════════════════════════════════════
   PORTFOLIO PAGES — the home, servicos/ and galeria/.
   Loaded after style.css, which holds the tokens, the page transition and
   the nav every page shares. Covers and clientes are app shells locked to
   the viewport; these three are ordinary scrolling documents.
   ════════════════════════════════════════════════════════════════════ */

/* ── DOCUMENT BASE ──
   style.css pins html/body to the viewport with overflow:hidden, which the
   app shells need; html.doc hands scrolling back to the page. The body goes
   transparent so the fixed .page-bg (z-index -1) shows: a body background
   would paint above a negative z-index layer. */
html.doc {
  height: auto;
  overflow-x: hidden; overflow-y: auto;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}
html.doc body {
  height: auto; min-height: 100%;
  overflow: visible;
  background: transparent;
  -webkit-user-select: text; user-select: text;
}
html.doc.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  html.doc { scroll-behavior: smooth; }
}

/* The same atmosphere as .app-bg, pinned behind the whole page. 100lvh, not
   inset:0, so a collapsing phone toolbar never uncovers a strip. */
.page-bg {
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh; height: 100lvh;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(107,45,62,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(201,169,110,0.1) 0%, transparent 60%),
    linear-gradient(180deg, #1A1410 0%, #120F0C 100%);
  pointer-events: none;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  padding: 10px 16px;
  background: var(--gold); color: var(--deep);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Present for screen readers and search engines, invisible on screen. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%; max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.center { text-align: center; }

/* ── SECTIONS ── */
.section {
  position: relative;
  padding: clamp(88px, 12vw, 150px) 0;
}
/* A tighter section, for content that reads at a glance. */
.section-compact { padding: clamp(64px, 8vw, 104px) 0; }
.section-compact .section-head { margin-bottom: clamp(32px, 4.4vw, 52px); }

/* A faintly lifted band between two gold hairlines — alternates with the
   plain sections so the page reads in movements. */
.section-band { background: rgba(250,247,242,0.018); }
.section-band::before,
.section-band::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.25), transparent);
}
.section-band::before { top: 0; }
.section-band::after  { bottom: 0; }

.section-head { margin-bottom: clamp(48px, 7vw, 80px); }

/* Small gold label with a hairline lead-in; centred heads get one each side.
   The negative margin on the right-hand line gives back the letter-space
   trailing the last letter, so the text sits truly between the two lines. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10.5px; font-weight: 300;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: rgba(201,169,110,0.6);
}
.center .eyebrow::after,
.page-head .eyebrow::after {
  content: '';
  width: 28px; height: 1px; margin-left: -5px;
  background: rgba(201,169,110,0.6);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 300;
  line-height: 1.08; letter-spacing: 0.5px;
  color: var(--ivory);
}
/* A person's name keeps the serif italic the rest of the display type gave
   up (--font-name), at the size a section title had in it. */
.section-title.about-name {
  font-family: var(--font-name);
  font-size: clamp(36px, 5.4vw, 56px);
  font-style: italic;
}
.section-lead {
  max-width: 720px;
  margin-top: 22px;
  font-size: 15px; font-weight: 300;
  line-height: 1.85; letter-spacing: 0.3px;
  color: rgba(250,247,242,0.66);
}
.center .section-lead { margin-left: auto; margin-right: auto; }

.divider {
  width: 40px; height: 1px;
  background: rgba(201,169,110,0.4);
  margin: 30px auto;
}

/* Headings and leads break into even lines, and body copy never ends on one
   stranded word — where supported; elsewhere they simply wrap as usual. */
.section-title, .page-title, .section-lead, .page-lead, .hero-tagline { text-wrap: balance; }
p { text-wrap: pretty; }

/* Quiet text link with an arrow that leans forward on hover. */
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px; font-weight: 300;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
}
.link-arrow .icon {
  width: 16px; height: 16px;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.link-arrow:hover .icon,
.link-arrow:focus-visible .icon { transform: translateX(5px); }
.link-arrow:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 6px; }

/* Rounded pill, the same as the "Espreita um exemplo" button on the clientes
   page (#lock.is-nolink .lock-demo in style.css): icon, then a small label. */
.pill-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px;
  border: 1px solid rgba(201,169,110,0.35); border-radius: 20px;
  background: rgba(201,169,110,0.06);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9.5px; font-weight: 300;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  opacity: 0.85;
  transition: opacity .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
.pill-link .icon { width: 17px; height: 17px; stroke-width: 1.3; }
.pill-link:hover,
.pill-link:focus-visible {
  opacity: 1;
  background: rgba(201,169,110,0.16);
  border-color: var(--gold);
  transform: translateY(-1px);
  outline: none;
}

/* Inline links inside body copy. */
.text-link {
  color: var(--gold); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 1px;
  transition: color .3s;
}
.text-link:hover { color: var(--ivory); }

/* ── HERO (home) ──
   The old landing, promoted to the top of the home: the big mark, the gold
   rule, one line of what it is, and the bar's own links laid out beneath.
   Padded equally top and bottom — the bar above it is empty while it is on
   screen — so the group sits in the true middle of the window. */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 24px var(--nav-h);
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; width: 100%; }
/* Sized by width (the artwork is 2.24:1) so it can never be squeezed out of
   proportion — it is also the image the page transition morphs. */
.hero-logo {
  display: block;
  width: clamp(250px, 72vw, 460px); height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 24px rgba(201,169,110,0.22));
}
.hero-divider {
  width: 40px; height: 1px;
  background: rgba(201,169,110,0.4);
  margin: 36px auto 26px;
}
.hero-tagline {
  font-size: 11px; font-weight: 300;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--blush); opacity: 0.8;
  margin-bottom: 48px;
  padding-left: 5px;
}
.hero-tagline .sep { color: var(--gold); margin: 0 6px; }

/* The six links, between two hairlines like the bar's own — one row with gold
   lozenges between them; on a phone, a two-column card split by a rule. */
.hero-nav {
  position: relative;
  padding: 8px 0;
}
.hero-nav::before,
.hero-nav::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.35), transparent);
}
.hero-nav::before { top: 0; }
.hero-nav::after  { bottom: 0; }
.hero-nav ul {
  list-style: none;
  display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(24px, 4vw, 56px);
}
.hero-nav li { display: flex; align-items: center; }
.hero-nav li + li::before {
  content: '';
  width: 4px; height: 4px;
  margin: 0 clamp(16px, 2vw, 26px);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}
.hero-nav a {
  position: relative; display: block;
  padding: 12px 0;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px; font-weight: 300;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(250,247,242,0.8); text-decoration: none;
  white-space: nowrap;
  transition: color .3s ease;
}
.hero-nav a::after {
  content: '';
  position: absolute; left: 0; right: 4px; bottom: 6px; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.hero-nav a:hover,
.hero-nav a:focus-visible { color: var(--gold); outline: none; }
.hero-nav a:hover::after,
.hero-nav a:focus-visible::after { transform: scaleX(1); }

@media (prefers-reduced-motion: no-preference) {
  .hero-divider  { animation: fsax-rise-in .9s cubic-bezier(.16, 1, .3, 1) .12s backwards; }
  .hero-tagline  { animation: fsax-rise-in .9s cubic-bezier(.16, 1, .3, 1) .22s backwards; }
  .hero-nav      { animation: fsax-rise-in .9s cubic-bezier(.16, 1, .3, 1) .32s backwards; }
}

@media (max-width: 640px) {
  .hero-tagline { font-size: 10px; letter-spacing: 4px; line-height: 2; margin-bottom: 40px; }
  .hero-tagline .sep { display: block; height: 0; overflow: hidden; }
  .hero-nav { width: min(100%, 320px); padding: 6px 0; }
  .hero-nav ul {
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 0;
  }
  /* The rule down the middle. */
  .hero-nav ul::before {
    content: '';
    position: absolute; top: 18px; bottom: 18px; left: 50%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(201,169,110,0.3), transparent);
  }
  .hero-nav li { justify-content: center; }
  .hero-nav li + li::before { display: none; }
  .hero-nav a { padding: 13px 0 13px 4px; }
}

/* ── ABOUT (home) ── */
.about-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
.about-photo {
  position: relative;
  width: min(calc(100% - 14px), 440px);
  margin: 0 auto;
}
/* The offset hairline frame behind the portrait. */
.about-photo::before {
  content: '';
  position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid rgba(201,169,110,0.38);
  border-radius: 2px;
  pointer-events: none;
}
.about-photo img {
  position: relative;
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 34px 70px -28px rgba(0,0,0,0.75);
}
.about-lead {
  margin: 28px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 21px);
  font-weight: 300;
  line-height: 1.5; letter-spacing: 0.3px;
  color: rgba(250,247,242,0.9);
}
.about-body p {
  font-size: 15px; font-weight: 300;
  line-height: 1.9; letter-spacing: 0.3px;
  color: rgba(250,247,242,0.66);
}
.about-body p + p { margin-top: 16px; }
.about-text .pill-link { margin-top: 36px; }

@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 5fr 6fr;
    gap: clamp(64px, 8vw, 112px);
  }
  .about-photo { width: calc(100% - 18px); margin: 0; }
  .about-photo::before { inset: 18px -18px -18px 18px; }
}

/* ── SERVICES TEASER (home) ── */
.svc-grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 760px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.svc-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(26px, 3.2vw, 38px);
  background: rgba(250,247,242,0.035);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 16px;
  overflow: hidden;
  color: inherit; text-decoration: none;
  transition: border-color .45s ease, background .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.45), transparent);
}
/* A warm glow gathers in the corner on hover. */
.svc-card::after {
  content: '';
  position: absolute; top: -40%; right: -30%;
  width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,169,110,0.14) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.svc-card:hover,
.svc-card:focus-visible {
  border-color: rgba(201,169,110,0.38);
  background: rgba(250,247,242,0.05);
  transform: translateY(-4px);
  outline: none;
}
.svc-card:hover::after,
.svc-card:focus-visible::after { opacity: 1; }
.svc-card:hover .link-arrow .icon,
.svc-card:focus-visible .link-arrow .icon { transform: translateX(5px); }

.svc-title {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.5vw, 28px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ivory);
}
/* Two columns of items wherever a card is wide enough for them, one where it
   is not — so a wide card never holds a narrow list with empty space beside. */
.svc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  column-gap: 28px;
  margin-bottom: 24px;
  border-top: 1px solid rgba(201,169,110,0.12);
}
.svc-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(201,169,110,0.12);
  font-family: var(--font-display);
  font-size: 16px; font-weight: 300;
  color: rgba(250,247,242,0.86);
}
/* Upright: an emoji font has no italic, and a synthesised slant skews it. */
.svc-emoji {
  flex-shrink: 0;
  width: 22px;
  font-style: normal; font-size: 17px; line-height: 1;
  text-align: center;
}
.svc-card .link-arrow { margin-top: auto; }

/* ── CONTACT (home) ──
   Rows in the manner of the client summary card: a small gold label over a
   display-font value, each a link, with an icon ring that fills on hover. */
.contact-grid {
  display: grid;
  gap: 52px;
  max-width: 980px; margin: 0 auto;
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}
.contact-col-title {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201,169,110,0.25);
  font-size: 10px; font-weight: 300;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--blush); opacity: 0.75;
}
.contact-list { list-style: none; }
.contact-row {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 2px;
  border-bottom: 1px solid rgba(201,169,110,0.1);
  color: inherit; text-decoration: none;
}
.contact-row:focus { outline: none; }
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,169,110,0.28); border-radius: 50%;
  background: rgba(201,169,110,0.06);
  color: var(--gold);
  transition: background .3s, color .3s, border-color .3s;
}
.contact-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.contact-label {
  font-size: 9.5px; font-weight: 300;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--gold); opacity: 0.8;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 300;
  line-height: 1.3;
  color: var(--ivory); opacity: 0.9;
  overflow-wrap: anywhere;
}
.contact-go {
  width: 16px; height: 16px;
  color: var(--gold); opacity: 0.4;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
.contact-row:hover .contact-icon,
.contact-row:focus-visible .contact-icon { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.contact-row:hover .contact-go,
.contact-row:focus-visible .contact-go { opacity: 1; transform: translate(3px, -3px); }

/* ── PAGE HEAD (servicos, galeria) ── */
.page-head {
  position: relative;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(56px, 8vw, 100px)) 0 clamp(40px, 5vw, 64px);
  text-align: center;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.6vw, 68px);
  font-weight: 300;
  line-height: 1.02; letter-spacing: 1px;
  color: var(--ivory);
}
.page-lead {
  max-width: 600px; margin: 0 auto;
  font-size: 15px; font-weight: 300;
  line-height: 1.85; letter-spacing: 0.3px;
  color: rgba(250,247,242,0.66);
}
@media (prefers-reduced-motion: no-preference) {
  .page-head .eyebrow { animation: fsax-rise-in .9s cubic-bezier(.16, 1, .3, 1) .05s backwards; }
  .page-title         { animation: fsax-rise-in .9s cubic-bezier(.16, 1, .3, 1) .12s backwards; }
  .page-head .divider { animation: fsax-fade-in .9s ease .25s backwards; }
  .page-lead          { animation: fsax-rise-in .9s cubic-bezier(.16, 1, .3, 1) .3s backwards; }
}

/* ── FOOTER ──
   One line under a hairline. The logo and the social links live in the nav
   and the home's Contactos section, so the footer doesn't repeat them. */
.site-footer {
  position: relative;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.3), transparent);
}
.footer-copy {
  font-size: 10px; font-weight: 300;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(250,247,242,0.38);
}

/* ── FLOATING BUTTONS (home) ──
   Instagram above WhatsApp, bottom-right, clear of the notch and the home
   indicator. WhatsApp is the gold one — it is the quickest way to a booking. */
.fab-stack {
  position: fixed; z-index: 200;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  position: relative;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,169,110,0.5); border-radius: 50%;
  background: rgba(26,20,16,0.72);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.7);
  color: var(--gold);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), background .3s, color .3s, border-color .3s;
}
.fab .icon { width: 22px; height: 22px; }
.fab-wa { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.fab:hover,
.fab:focus-visible { transform: translateY(-3px); background: var(--gold); border-color: var(--gold); color: var(--deep); outline: none; }
.fab-wa:hover,
.fab-wa:focus-visible { background: #DDBF86; border-color: #DDBF86; }
.fab-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  padding: 7px 12px 7px 15px;
  background: rgba(18,15,12,0.92);
  border: 1px solid rgba(201,169,110,0.25); border-radius: 2px;
  font-size: 9.5px; font-weight: 300;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--ivory); white-space: nowrap;
  opacity: 0; transform: translate(6px, -50%);
  transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
@media (hover: hover) {
  .fab:hover .fab-tip,
  .fab:focus-visible .fab-tip { opacity: 1; transform: translate(0, -50%); }
}
@media (prefers-reduced-motion: no-preference) {
  .fab-stack { animation: fsax-rise-in .7s cubic-bezier(.16, 1, .3, 1) .6s backwards; }
}
@media (max-width: 560px) {
  .fab { width: 48px; height: 48px; }
  .fab .icon { width: 20px; height: 20px; }
}

/* ── REVEAL ON SCROLL ──
   Tied to the scroll position itself (a view() timeline), not to a script
   that adds a class: where the feature is missing the rule is skipped and
   everything is simply visible, and where it exists an element that is on
   screen is always at its end state — nothing can be left at opacity 0.
   animation-timeline must come after the shorthand, which resets it. */
@keyframes fsax-reveal { from { opacity: 0; transform: translateY(26px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: fsax-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
