/* Estilos proprios de espaco-aveiro.html. O que e comum as cinco paginas vive em
   ../base.css, carregado antes desta folha. */

:root {
  --ink: #2B3D27;
  --ink-deep: #1B2A18;
  --leaf: #8FB37D;
  --brass: #C8CDD7;
  --ivory: #E8DCC4;
  --paper: #fffdf8;
  --gold: #B8933F;
  --rose: #D4B5C6;
  --line: color-mix(in srgb, var(--paper) 22%, transparent);
}
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
}

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem var(--pad); background: var(--gold); color: #000;
}
.top-back { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .3rem; }
.top-brand { font-family: var(--display); font-size: 1.3rem; letter-spacing: .18em; text-align: right; line-height: .9; }
.top-brand small { display: block; margin-top: .35rem; font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .32em; }

.lookbook { padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem); }
.lookbook-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 2rem 3rem; padding: 0 var(--pad); margin-bottom: 3.5rem;
}
.lookbook-head h1 {
  margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 400; line-height: .95; letter-spacing: -.05em;
}
.lookbook-head h1 em { color: var(--gold); font-style: italic; }
.lookbook-head p { margin: 0; max-width: 24rem; font-size: 1.02rem; line-height: 1.6; color: rgb(255 253 248 / 78%); }
.top-lang { position: relative; flex: none; }
.language-toggle {
  display: inline-flex; align-items: center; gap: .45rem; padding: .58rem .72rem;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit;
  cursor: pointer; font-family: var(--sans); font-size: .64rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.language-toggle::after { content: ""; width: .36rem; height: .36rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.language-list {
  position: absolute; right: 0; top: calc(100% + .55rem); z-index: 30; width: 13rem; margin: 0; padding: .45rem;
  list-style: none; border: 1px solid rgb(0 0 0 / 14%); border-radius: 1rem;
  background: var(--paper); color: var(--ink); box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 28%);
  opacity: 0; visibility: hidden; transform: translateY(-.4rem); transition: opacity .2s, visibility .2s, transform .2s;
}
.language-option {
  display: flex; justify-content: space-between; align-items: center; width: 100%; padding: .68rem .8rem;
  border: 0; border-radius: .6rem; background: transparent; color: inherit; cursor: pointer;
  font-family: var(--sans); font-size: .86rem; text-align: left;
}
.language-option:hover, .language-option.active { background: #e7ecea; }
.language-option small { color: #82908d; font-size: .65rem; letter-spacing: .14em; }
.mq { display: block; }
.mq::after { content: "\2726"; margin-inline: .5em; color: var(--paper); font-style: normal; }
.wellbeing { display: grid; grid-template-columns: 1fr 1fr; background: var(--brass); color: var(--ink-deep); }
.wellbeing-copy { padding: clamp(5rem, 9vw, 9rem) var(--pad); }
.wellbeing-copy p { max-width: 35rem; font-size: 1.08rem; line-height: 1.7; }
.wellbeing-copy .button { color: var(--ink-deep); }
.wellbeing-copy .eyebrow { color: var(--ink-deep); }
.wellbeing-media { display: grid; grid-template-columns: 1fr 1fr; min-height: 48rem; }
.wellbeing-media figure { position: relative; margin: 0; overflow: hidden; }
.wellbeing-media figure:last-child { margin-top: 7rem; }
@media (max-width: 1023.98px) {
  .lookbook-head { display: block; }
  .lookbook-head p { max-width: none; margin-top: 1.4rem; }
}

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 26vw); gap: 1rem;
  overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory;
  scrollbar-width: none; padding: 0 var(--pad) 1rem;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { position: relative; height: min(66dvh, 42rem); margin: 0; overflow: hidden; scroll-snap-align: start; background: var(--ink-deep); }
.shot:nth-child(2n) { margin-top: 3.5rem; height: min(58dvh, 37rem); }
.gallery .shot { animation: shot-float 8s ease-in-out infinite; will-change: transform; }
.gallery .shot:nth-child(3n+2) { animation-delay: -2.6s; }
.gallery .shot:nth-child(3n+3) { animation-delay: -5.2s; }
.gallery .shot:hover, .gallery .shot:focus-within { animation-play-state: paused; }
@keyframes shot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2rem); } }
@media (prefers-reduced-motion: reduce) { .gallery .shot { animation: none; } }
.shot figcaption {
  position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 1rem;
  padding: 3rem 1.1rem 1.1rem; background: linear-gradient(transparent, rgb(5 5 15 / 82%));
  font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.gallery-hint { margin: 1.4rem var(--pad) 0; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }

.hero {
  position: relative; min-height: 100svh; overflow: hidden; background: var(--ink-deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-media::before {
  content: ""; position: absolute; z-index: 2; inset: 0;
  background: linear-gradient(90deg, rgb(5 21 17 / 88%) 0%, rgb(8 29 24 / 60%) 45%, rgb(8 29 24 / 8%) 78%),
              linear-gradient(0deg, rgb(5 20 16 / 65%) 0%, transparent 45%);
}
.hero-media video { object-position: center 30%; filter: saturate(.76) contrast(1.05); animation: hero-image-settle 1.8s cubic-bezier(.2,.8,.2,1) both; }
.hero-spotlight {
  position: absolute; z-index: 2; inset: 0; pointer-events: none;
  background: radial-gradient(circle 22rem at 58% 38%, rgb(214 184 164 / 32%), transparent 62%);
  mix-blend-mode: screen; opacity: .9;
}
.hero-curtain {
  position: absolute; z-index: 8; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, var(--ink-deep) 0 72%, var(--brass) 72% 72.35%, var(--ink) 72.35%);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
  animation: curtain-open 1.45s cubic-bezier(.77,0,.18,1) .12s forwards;
}
.hero-316 {
  position: absolute; z-index: 3; right: -1.2vw; bottom: -8vw;
  font-family: var(--display); font-size: clamp(13rem, 32vw, 38rem); font-style: italic;
  font-weight: 400; line-height: .68; letter-spacing: -.12em; color: transparent;
  -webkit-text-stroke: 1px rgb(255 253 248 / 42%); opacity: .65; pointer-events: none;
  animation: mark-breathe 7s ease-in-out infinite;
}
.hero-content {
  position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100svh; width: min(57rem, 100%); padding: 10rem var(--pad) 5.5rem;
}
.eyebrow {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 1.4rem; color: var(--gold);
  font-size: .69rem; font-weight: 700; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase;
}
.hero h2 {
  max-width: 13ch; margin: 0 0 1.6rem; font-family: var(--display);
  font-size: clamp(3.4rem, 8.5vw, 9rem); font-weight: 400; line-height: .84; letter-spacing: -.065em;
}
.hero h2 em {
  color: var(--gold); font-weight: 400; font-style: italic;
  background: linear-gradient(100deg, var(--gold) 15%, var(--paper) 48%, var(--gold) 78%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: hair-shine 5.5s ease-in-out infinite;
}
.hero-content > * { animation: hero-arrive 1.05s cubic-bezier(.2,.8,.2,1) .75s both; }
.hero-content > :nth-child(2) { animation-delay: .9s; }
.hero-content > :nth-child(3) { animation-delay: 1.05s; }
.hero-content > :nth-child(4) { animation-delay: 1.2s; }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(1.7rem); } to { opacity: 1; transform: none; } }
@keyframes hero-image-settle { from { transform: scale(1.1); filter: saturate(.3) contrast(1.15); } to { transform: scale(1); filter: saturate(.76) contrast(1.05); } }
@keyframes mark-breathe { 0%, 100% { opacity: .52; transform: translateY(0); } 50% { opacity: .72; transform: translateY(-.8rem); } }
.hero-copy { max-width: 39rem; margin-bottom: 2.1rem; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; color: rgb(255 253 248 / 82%); }
.hero-meta {
  position: absolute; z-index: 4; right: var(--pad); top: 50%; display: flex; gap: 1.2rem;
  writing-mode: vertical-rl; transform: translateY(-50%); color: var(--paper); font-size: .6rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.hero-meta span + span { padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / 50%); }

@media (max-width: 767.98px) {
  .top-back { font-size: .6rem; }
  .top-brand { font-size: 1rem; }
  .gallery { grid-auto-columns: 80vw; }
  .shot, .shot:nth-child(2n) { height: 60dvh; margin-top: 0; }
  .hero-content { justify-content: flex-end; padding-top: 8rem; padding-bottom: 3rem; }
  .hero-media::before { background: linear-gradient(0deg, rgb(5 21 17 / 92%) 0%, rgb(5 21 17 / 48%) 68%, rgb(5 21 17 / 20%)); }
  .hero-media video { object-position: 56% center; }
  .hero-meta { display: none; }
  .hero-316 { right: -5vw; bottom: 8rem; font-size: 60vw; }
  .hero h2 { font-size: clamp(3.4rem, 16vw, 5.3rem); }
  .hero-copy { font-size: .96rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-curtain { display: none; }
  .hero-media video, .hero-content > *, .hero-316, .hero-spotlight { animation: none !important; }
}

.section-heading {
  margin: 0 0 2.5rem; font-family: var(--display); font-size: clamp(3rem, 6.7vw, 7.2rem);
  font-weight: 400; line-height: .91; letter-spacing: -.055em;
}
.section-heading em { color: var(--gold); font-weight: 400; font-style: italic; }

.marquee { overflow: hidden; padding: 1.2rem 0; background: var(--gold); border-block: 1px solid rgb(0 0 0 / 12%); }
.marquee-track > span { display: flex; align-items: baseline; color: #000; font-family: var(--display); font-size: clamp(1.55rem, 3vw, 3rem); font-style: italic; white-space: nowrap; }

.services { padding: clamp(6rem, 11vw, 10rem) var(--pad); }
.services-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end;
  gap: clamp(1.4rem, 3vw, 2.6rem) clamp(2rem, 5vw, 5rem); margin-bottom: 4rem; }
.services-head .section-heading { grid-column: 1; grid-row: 1 / span 2; align-self: end; max-width: 15ch; margin: 0; font-size: clamp(3.4rem, 7.6vw, 8.2rem); }
.services-media { grid-column: 2; grid-row: 1; display: flex; min-width: 0; justify-content: center; align-items: flex-end; gap: clamp(.6rem, 1.2vw, 1.3rem); }
.services-media img { flex: 1 1 0; min-width: 0; max-width: 14rem; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 1rem; animation: pilar-float 7s ease-in-out infinite; will-change: transform; }
.services-media img:nth-child(2) { animation-delay: -2.3s; }
.services-media img:nth-child(3) { animation-delay: -4.6s; }
@keyframes pilar-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.1rem); } }
@media (prefers-reduced-motion: reduce) { .services-media img { animation: none; } }
.services-head p { grid-column: 2; grid-row: 2; max-width: 30rem; margin: 0; line-height: 1.65; color: rgb(255 253 248 / 82%); }
.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 5rem .8fr 1.4fr 17rem; gap: 2rem; align-items: center;
  min-height: 12rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.service-number { font-family: var(--display); font-size: 1.2rem; font-style: italic; color: var(--gold); }
.service h3 {
  margin: 0; font-family: var(--display); font-size: clamp(2.3rem, 4.3vw, 5rem); font-weight: 400; letter-spacing: -.05em;
  background: linear-gradient(100deg, var(--paper) 10%, var(--gold) 45%, var(--paper) 80%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold);
}
.service p { margin: 0; max-width: 38rem; line-height: 1.6; color: var(--gold); }
.service-thumb { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; height: 8.5rem; overflow: hidden; }
.service-thumb video, .service-thumb img { transition: transform .65s; }
.service:hover .service-thumb video, .service:hover .service-thumb img { transform: scale(1.05); }

@media (max-width: 1023.98px) {
  .wellbeing { grid-template-columns: 1fr; }
  .wellbeing-media { min-height: 30rem; }
  .wellbeing-media figure:last-child { margin-top: 3rem; }
  .services-head { display: block; }
  .services-head p { margin-top: 1.4rem; }
  .services-media { justify-content: flex-start; margin-top: 2rem; }
  .services-media img { width: clamp(5.5rem, 27vw, 9rem); }
  .service { grid-template-columns: 2.2rem 1fr; gap: 1rem; padding: 2rem 0; }
  .service h3 { font-size: 2.7rem; }
  .service p { grid-column: 2; }
  .service-thumb { grid-column: 1 / -1; grid-row: auto; height: 14rem; }
}

.contact-section { position: relative; overflow: hidden; background: var(--ink-deep); }
.contact-section::before { content: "AVEIRO"; position: absolute; left: -3vw; bottom: -4vw; font-family: var(--display); font-size: 21vw; line-height: .7; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 11%); pointer-events: none; }
.contact-lead { max-width: 39rem; margin: 1.4rem 0 2.1rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.65; color: rgb(255 253 248 / 75%); }
.contact-row dt { font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.contact-row .badge { text-decoration: none; }

@media (max-width: 1023.98px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: .45rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}

/* --- afinacao para telemovel --- */

@media (max-width: 767.98px) {
  .top-back { display: inline-block; padding-block: .45rem; }
  /* Em telemovel a goteira encosta ao minimo, mas nunca entra no notch. */
  :root { --pad: max(1.25rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  /* A ultima faixa da pagina afasta-se da barra de gestos. */
  .signature { padding-bottom: calc(3.2rem + env(safe-area-inset-bottom, 0px)); }
  .nav { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
  .contact-row a, .footer a { display: inline-block; padding-block: .3rem; }
  .wellbeing-media figcaption { right: 0; }
}

/* --- alvos tacteis: minimo 44x44 em toque. Override, fica no fim. --- */
@media (pointer: coarse) {
  .menu-toggle { min-height: 44px; min-width: 44px; padding-block: .95rem; }
  .language-toggle { min-height: 44px; }
  .language-option { min-height: 44px; }
  .sound-toggle { min-height: 44px; min-width: 44px; }
  .skip-link, .top-back, .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .badge { min-height: 44px; }
  .footer a, .footer span a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .contact-row dd a, .local-info a, .feature-copy a, .diagnosis-copy a, .intro-copy a,
  .local-title a, .signature-credit a, .signature-copy a, p.eyebrow a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .strip-arrow, .lightbox-close, .look-like { min-height: 44px; min-width: 44px; }
  .look-like { opacity: 1; transform: none; }
}
