/* ============================================================
   The Lost Paradise — tema arredondado
   Carregado depois do CSS da aplicação para afinar o look & feel.
   ============================================================ */

:root {
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --line-soft: color-mix(in srgb, var(--line) 58%, transparent);
  --shadow-soft: 0 1px 2px rgba(13, 27, 49, .04), 0 14px 34px -18px rgba(13, 27, 49, .26);
  --shadow-lift: 0 2px 4px rgba(13, 27, 49, .05), 0 26px 52px -22px rgba(13, 27, 49, .38);
  --studio-radius: 20px;
}

::selection {
  background: var(--coastal);
  color: var(--deep);
}

body {
  background:
    radial-gradient(1100px 520px at 85% -10%, #e8f1f7 0%, transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Cabeçalho flutuante ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border: 0;
  padding-top: 12px;
}

.site-header-inner {
  width: min(1400px, calc(100% - 2 * var(--gutter)));
  min-height: 58px;
  margin-inline: auto;
  padding: 6px 10px 6px clamp(16px, 2vw, 26px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.site-header--home {
  position: fixed;
  inset: 0 0 auto;
  padding-top: 14px;
  color: var(--warm);
  background: transparent;
}

.site-header--home .site-header-inner {
  background: rgba(13, 27, 49, .38);
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, .65);
}

.site-header--home .site-header-inner:after {
  display: none;
}

.site-wordmark {
  letter-spacing: .16em;
  font-weight: 760;
}

/* ---------- Navegação em pílulas ---------- */

.header-links {
  gap: clamp(2px, .6vw, 8px);
}

.header-links a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.header-links a:is(:hover, :focus-visible) {
  text-decoration: none;
  background: color-mix(in srgb, var(--navy) 8%, transparent);
}

.header-links a[aria-current] {
  background: var(--navy);
  color: var(--warm);
}

.site-header--home .header-links a:is(:hover, :focus-visible) {
  background: rgba(255, 255, 255, .14);
}

.site-header--home .header-links a[aria-current] {
  background: var(--warm);
  color: var(--navy);
}

.mobile-menu-trigger {
  padding: 0 14px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

.site-header--home .mobile-menu-trigger {
  border-color: rgba(255, 255, 255, .3);
}

.mobile-menu-links {
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: min(18rem, calc(100vw - 3rem));
  padding: 8px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lift);
}

.mobile-menu-links a {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

.mobile-menu-links a + a {
  border-top: 0;
}

.mobile-menu-links a[aria-current] {
  background: var(--navy);
  color: var(--warm);
  text-decoration: none;
}

.site-header--home .mobile-menu-links {
  background: rgba(13, 27, 49, .95);
  color: var(--warm);
  border-color: rgba(255, 255, 255, .16);
}

.site-header--home .mobile-menu-links a[aria-current] {
  background: var(--warm);
  color: var(--navy);
}

/* ---------- Botões e links ---------- */

.site-editor-button {
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(13, 27, 49, .05);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.site-editor-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--strong-line);
  box-shadow: var(--shadow-soft);
}

.site-editor-button:is(.button-fill, .button-outline),
.site-editor-button.button-fill {
  border-radius: 999px;
  border-color: transparent;
}

.site-editor-button.button-fill {
  background: var(--blue);
  color: var(--warm);
}

.home-hero .site-editor-button,
.story-cover .site-editor-button,
.overlay .site-editor-button {
  background: var(--warm);
  border-color: transparent;
  color: var(--navy);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .7);
}

.pagination,
.primary-button,
.archive-filters button,
.story-back {
  border-radius: 999px;
}

.primary-button {
  padding: 13px 20px;
}

.text-link {
  padding: 9px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--navy);
  font-weight: 720;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.text-link:hover {
  border-color: var(--ocean);
  background: var(--surface);
  color: var(--navy);
  transform: translateY(-1px);
}

.story-back {
  border-radius: 999px;
  padding: 9px 15px;
}

/* ---------- Estrutura de página ---------- */

.page-shell {
  padding-top: clamp(40px, 5.4vw, 72px);
  padding-bottom: clamp(64px, 8vw, 110px);
}

.page-heading {
  border-bottom-color: var(--line-soft);
  margin-bottom: clamp(26px, 3.6vw, 46px);
  padding-bottom: clamp(18px, 2.4vw, 30px);
}

.page-heading h1 {
  color: var(--navy);
  text-wrap: balance;
}

.page-heading p {
  max-width: 50ch;
}

.eyeline {
  color: var(--blue);
  opacity: .78;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--r-m);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 18px 20px;
  font-size: 14px;
}

.demo-callout {
  border-radius: 14px;
  border-left-width: 4px;
}

/* ---------- Hero ---------- */

.home-hero {
  overflow: hidden;
  border-radius: 0 0 clamp(26px, 4vw, 46px) clamp(26px, 4vw, 46px);
}

.home-hero h1 {
  text-shadow: 0 12px 40px rgba(7, 18, 33, .35);
}

.home-hero-description {
  color: color-mix(in srgb, var(--warm) 88%, transparent);
}

/* ---------- Viagens ---------- */

.home-trips-heading {
  border-bottom-color: var(--line-soft);
}

.home-trip > a {
  border-radius: var(--r-xl);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-trip > a:is(:hover, :focus-visible) {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.home-trip-photo {
  border-radius: 0;
  overflow: hidden;
}

.home-trip-copy {
  border-bottom: 0;
  padding: 22px clamp(18px, 2.2vw, 28px) 26px;
}

.home-trip:first-child .home-trip-copy {
  background: var(--surface);
  padding: clamp(26px, 3.4vw, 50px);
}

.home-trip-link {
  padding: 7px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-weight: 720;
}

.home-trip-details {
  color: var(--blue);
  opacity: .72;
}

.dispatch {
  border-bottom-color: var(--line-soft);
}

.dispatch-photo {
  border-radius: var(--r-l);
  overflow: hidden;
}

.film-play,
.film-frame {
  border-radius: var(--r-l);
  overflow: hidden;
}

/* ---------- Álbuns / fotografias ---------- */

.contact-sheet {
  gap: clamp(18px, 2.8vw, 32px);
}

.album-print {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  padding: 10px 10px 8px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}

.album-print:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.album-print > img,
.album-print > .image-placeholder {
  border-radius: var(--r-m);
}

.album-print > span {
  padding: 12px 6px 6px;
}

.studio-album-grid a {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.studio-album-grid a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.studio-album-grid a > span {
  padding: 12px 6px 6px;
}

.studio-album-grid a > :is(img, .image-placeholder),
.studio-album-grid .media-image {
  border-radius: var(--r-m);
}

.photo-gallery {
  gap: clamp(14px, 2vw, 22px);
}

.photo-gallery button,
.photo-gallery img,
.photo-gallery .image-placeholder {
  border-radius: var(--r-m);
  overflow: hidden;
}

.photo-gallery figure:first-child :is(button, img) {
  border-radius: var(--r-l);
}

.photo-open {
  border-radius: 50%;
}

.photo-gallery figcaption {
  padding-left: 4px;
}

/* ---------- Relatos / histórias ---------- */

.story-cover {
  border-radius: 0 0 clamp(24px, 3.4vw, 40px) clamp(24px, 3.4vw, 40px);
  overflow: hidden;
}

.prose-editorial blockquote {
  border-left: 4px solid var(--coastal);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  padding: 18px 22px;
  background: color-mix(in srgb, var(--tint) 55%, transparent);
}

.story-route {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  padding: 24px clamp(18px, 2.4vw, 28px);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.related-stories a {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.related-stories a img,
.related-stories .image-placeholder {
  border-radius: var(--r-m);
}

.related-stories a span:not(.image-placeholder) {
  border-bottom: 0;
  padding: 12px 4px 6px;
}

/* ---------- Atlas ---------- */

.atlas-map {
  border-radius: var(--r-l);
  overflow: hidden;
  border-color: var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.atlas-detail {
  border-radius: var(--r-l);
  border-color: var(--line-soft);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.atlas-zoom button {
  border-radius: 12px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.atlas-photos {
  gap: 6px;
  padding: 10px;
}

.atlas-photos :is(img, .image-placeholder) {
  border-radius: 10px;
}

.atlas-list button {
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.atlas-list button:hover {
  border-color: var(--ocean);
}

.atlas-related a {
  border-bottom-color: var(--line-soft);
}

/* ---------- Sobre / contacto ---------- */

.bio-layout img {
  border-radius: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  gap: 14px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact-form input,
.contact-form textarea {
  border-radius: 14px;
  border-color: var(--line-soft);
  background: var(--paper);
  padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.contact-form :is(input, textarea):focus {
  outline: 0;
  background: var(--surface);
  border-color: var(--ocean);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ocean) 16%, transparent);
}

.contact-social a {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface);
  padding: 13px 16px;
  box-shadow: 0 1px 2px rgba(13, 27, 49, .04);
  transition: border-color .2s ease, transform .2s ease;
}

.contact-social a:hover {
  border-color: var(--ocean);
  transform: translateY(-1px);
}

/* ---------- Rodapé ---------- */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: clamp(34px, 5vw, 70px) var(--gutter) 26px;
  padding: clamp(30px, 4vw, 52px);
  border: 0;
  border-radius: clamp(24px, 3.4vw, 36px);
  background: linear-gradient(150deg, var(--navy) 0%, var(--deep) 62%, #0a1729 100%);
  box-shadow: 0 30px 70px -34px rgba(13, 27, 49, .6);
}

/* brilhos decorativos, sem roubar cliques */
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.site-footer::before {
  width: min(520px, 64%);
  top: -48%;
  right: -8%;
  background: radial-gradient(circle, rgba(120, 178, 214, .34), transparent 68%);
}

.site-footer::after {
  width: min(340px, 44%);
  bottom: -62%;
  left: 10%;
  background: radial-gradient(circle, rgba(255, 255, 255, .09), transparent 70%);
}

.footer-identity {
  flex: 1 1 250px;
}

.footer-identity .brand {
  gap: 14px;
  font-size: clamp(19px, 1.8vw, 24px);
}

.footer-identity .brand img {
  width: 40px;
  height: 40px;
}

.footer-identity .brand strong {
  font-family: var(--serif);
  font-weight: 400;
}

.footer-links {
  gap: 4px 4px;
}

.footer-links a {
  padding: 8px 13px;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, .1);
}

.footer-social {
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px 10px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .02em;
  transition: transform .22s ease, background-color .22s ease,
              border-color .22s ease, box-shadow .22s ease;
}

/* a seta herdada dá lugar ao ícone da rede */
.footer-social a svg {
  display: none;
}

.footer-social a::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.footer-social a[href*="instagram"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.2' cy='6.8' r='1.3' fill='black' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.2' cy='6.8' r='1.3' fill='black' stroke='none'/%3E%3C/svg%3E");
}

.footer-social a[href*="youtube"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='4.5'/%3E%3Cpath d='M10.4 9.4v5.2l4.6-2.6z' fill='black' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='4.5'/%3E%3Cpath d='M10.4 9.4v5.2l4.6-2.6z' fill='black' stroke='none'/%3E%3C/svg%3E");
}

.footer-social a[href^="mailto"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3.5'/%3E%3Cpath d='m4.4 7.6 7.6 5.2 7.6-5.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3.5'/%3E%3Cpath d='m4.4 7.6 7.6 5.2 7.6-5.2'/%3E%3C/svg%3E");
}

.footer-social a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .5);
}

.footer-social a[href*="instagram"]::before {
  background: linear-gradient(140deg, #f7c948 5%, #e9317d 52%, #6a3ee0 100%);
}

.footer-social a[href*="youtube"]::before {
  background: #ff2d55;
}

.footer-social a[href*="instagram"]:hover {
  background: linear-gradient(135deg, #f7c948 0%, #e9317d 52%, #6a3ee0 100%);
  border-color: transparent;
  box-shadow: 0 16px 30px -18px rgba(233, 49, 125, .9);
}

.footer-social a[href*="youtube"]:hover {
  background: #ff2d55;
  border-color: transparent;
  box-shadow: 0 16px 30px -18px rgba(255, 45, 85, .9);
}

/* ---------- Visualizador de fotografias ---------- */

/* .photo-gallery button (do CSS do site) também apanhava o botão de
   fechar, porque o <dialog> é renderizado dentro da grelha: ficava um
   bloco claro de largura total no lugar do círculo com o X. */
.overlay.lightbox .overlay-close {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  padding: 0;
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 16px;
  z-index: 3;
  overflow: visible;
  color: var(--warm);
  background: rgba(23, 43, 73, .86);
  border: 1px solid rgba(168, 203, 220, .55);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .2s ease, transform .2s ease;
}

.overlay.lightbox .overlay-close:is(:hover, :focus-visible) {
  background: var(--blue);
  transform: rotate(90deg);
}

.overlay.lightbox .overlay-close svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* ---------- Ecrãs pequenos ---------- */

@media (max-width: 980px) {
  .site-header .header-links {
    display: none;
  }

  .site-header .mobile-menu {
    display: block;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 8px;
  }

  .site-header--home {
    padding-top: 8px;
  }

  .site-header-inner {
    width: calc(100% - 2 * clamp(12px, 4vw, 22px));
    min-height: 54px;
    padding: 5px 8px 5px 16px;
  }

  .page-shell {
    padding-top: 34px;
  }

  .home-trips-heading {
    gap: 12px;
  }

  .album-print,
  .studio-album-grid a {
    padding: 8px;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .site-footer {
    margin-inline: clamp(12px, 4vw, 22px);
    margin-bottom: 16px;
    padding: 26px 22px;
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-editor-button:hover,
  .text-link:hover,
  .home-trip > a:is(:hover, :focus-visible),
  .album-print:hover,
  .studio-album-grid a:hover,
  .contact-social a:hover {
    transform: none;
  }
}
