/* =========================================================
   Aline Laner · Psicóloga — Tábua de Marés da Ilha
   Céu-névoa em cima, mar verde-petróleo embaixo, um magenta.
   Para mudar cores, edite só as variáveis em :root.
   ========================================================= */

@font-face { font-family: "Spectral"; src: url("../fonts/spectral-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* tintas */
  --sky: #E4EBE8;          /* névoa */
  --sky-deep: #D5E0DC;     /* névoa mais densa, linhas */
  --sea: #123F44;          /* mar verde-petróleo */
  --sea-deep: #0C2E32;     /* rodapé */
  --ink: #0B1F22;          /* texto sobre névoa */
  --ink-soft: #3B5457;     /* texto secundário sobre névoa */
  --foam: #E4EBE8;         /* texto sobre o mar */
  --foam-soft: #9DCFC8;    /* texto secundário sobre o mar */
  --magenta: #C2185B;      /* ação (do logo dela) */
  --magenta-deep: #9E1249;
  --rule-ink: rgba(11, 31, 34, .22);
  --rule-foam: rgba(228, 235, 232, .24);

  /* tipografia */
  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;

  /* ritmo */
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 10vw, 152px);
  --topbar: 64px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
strong { font-weight: 600; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--sky); padding: 10px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- títulos: letreiro de carta náutica (água em itálico) ---------- */
.display {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.display--md { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.display--lg { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: 0 1.4em;
  background: var(--magenta); color: #fff;
  font: 600 1.0625rem/1 var(--sans);
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 10px 24px -14px rgba(158, 18, 73, .9);
  transition: background-color .25s ease, transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease;
}
.btn:hover { background: var(--magenta-deep); transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(158, 18, 73, 1); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 40px; padding: 0 1em; font-size: .9375rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- cabeçalho ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(228, 235, 232, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule-ink);
}
.topbar__in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--topbar);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; margin-right: auto; }
.brand__name { font-family: var(--serif); font-style: italic; font-size: 1.375rem; letter-spacing: -.01em; }
.brand__crp { font-size: .8125rem; color: var(--ink-soft); font-weight: 500; }
.nav { display: flex; gap: 28px; font-size: .9375rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 1. início: céu, horizonte, mar ---------- */
.hero { position: relative; background: var(--sea); --sea-h: clamp(150px, 28vh, 260px); }
.hero__sky {
  position: relative;
  background: var(--sky);
}
/* o mar sobe até a linha do horizonte, atrás do retrato */
.hero__sky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--sea-h);
  background: var(--sea);
  border-top: 1px solid var(--ink);
  transform-origin: bottom;
  animation: tide-in 1.8s cubic-bezier(.16, 1, .3, 1) both;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 12fr) minmax(0, 11fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
  min-height: min(calc(100svh - var(--topbar)), 900px);
  padding-top: clamp(40px, 5vw, 72px);
}
.hero__copy { display: flex; flex-direction: column; align-self: stretch; justify-content: flex-end; }
.hero h1 {
  font-size: clamp(2.5rem, 1.1rem + 3.6vw, 4.25rem);
  max-width: 15ch;
}
.hero__lead {
  margin: clamp(20px, 2vw, 28px) 0 0;
  max-width: 40ch;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink);
}
.hero__id {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 22px 0 0; padding: 12px 0 0;
  border-top: 1px solid var(--rule-ink);
  font-size: .9375rem; font-weight: 500; color: var(--ink-soft);
  max-width: 34rem;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 28px 0 clamp(36px, 5vh, 56px); }
.hero__phone { font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; border-bottom: 1px solid var(--rule-ink); padding: 4px 0; }
.hero__phone:hover { border-color: var(--ink); }

.hero__portrait { margin: 0; align-self: end; }
.hero__portrait img {
  width: 100%;
  max-height: calc(100svh - var(--topbar) - 64px);
  aspect-ratio: 4 / 5.3;
  object-fit: cover;
  object-position: 50% 30%;
  box-shadow: 0 30px 60px -30px rgba(12, 46, 50, .7);
  animation: develop 2.2s cubic-bezier(.16, 1, .3, 1) both;
}

/* linha da maré: ocupa a faixa de mar sob o horizonte */
.tide {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 8px 20px;
  height: var(--sea-h);
  color: var(--foam);
}
.tide__label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--foam-soft); }
.tide__time { font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tide__status { font-size: .9375rem; color: var(--foam); }
.tide__status::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: .1em;
  border-radius: 50%; background: var(--foam-soft);
}
.tide.is-open .tide__status::before { background: #F06A9E; box-shadow: 0 0 0 4px rgba(240, 106, 158, .18); }

/* ---------- seções em tábua ---------- */
.sea { background: var(--sea); color: var(--foam); }
.sky { background: var(--sky); color: var(--ink); }
.sea, .sky { padding: var(--section) 0; }
.hero + .sea { padding-top: clamp(56px, 7vw, 104px); }
/* horizonte entre campos */
.sky + .sea, .sea + .sky { border-top: 1px solid var(--ink); }
.sky--rule .table-section { border-top: 1px solid var(--rule-ink); padding-top: clamp(48px, 6vw, 88px); }
.sky.gestalt + .sky--rule { padding-top: 0; }

.table-section {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.table-section__head { position: sticky; top: calc(var(--topbar) + 32px); }
.note { margin: 18px 0 0; max-width: 30ch; color: var(--foam-soft); }
.note--ink { color: var(--ink-soft); }

.rows { margin: 0; border-top: 1px solid var(--rule-foam); }
.row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 3fr) minmax(0, 7fr);
  gap: 8px 32px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule-foam);
}
.row dt {
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--foam-soft); padding-top: .3em;
}
.row dd { margin: 0; max-width: 60ch; }
.rows--ink { border-color: var(--rule-ink); }
.rows--ink .row { border-color: var(--rule-ink); }
.rows--ink .row dt { color: var(--ink-soft); }

.hours { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 500; }
.hours .num { font-family: var(--serif); font-style: italic; font-size: 1.375rem; line-height: 1.2; }
.hours__note { display: block; margin-top: 6px; font-size: .9375rem; color: var(--foam-soft); }
.rows--ink .hours__note { color: var(--ink-soft); }
/* marca "agora" na tábua: o período em curso */
.hours .is-now::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: .2em;
  border-radius: 50%; background: var(--magenta);
}
.sea .hours .is-now::before { background: #F06A9E; box-shadow: 0 0 0 4px rgba(240, 106, 158, .18); }

/* letreiro de carta náutica: lugar e coordenadas */
.chart-label { margin: 14px 0 0; font-size: .9375rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .02em; }
.chart-label .num { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; letter-spacing: 0; }

.link-wa, .link {
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.link-wa { color: #F7A8C8; }
.link-wa:hover { color: #fff; }
.link:hover { color: var(--magenta); }

/* ---------- 3. aqui e agora ---------- */
.big { font-family: var(--serif); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.35; letter-spacing: -.01em; margin: 0 0 24px; max-width: 32ch; text-wrap: pretty; }
.gestalt__body > p:not(.big) { max-width: 62ch; color: var(--ink); margin: 0; }
.quote { margin: clamp(36px, 4vw, 56px) 0 0; padding: 26px 0 0; border-top: 1px solid var(--ink); max-width: 40rem; }
.quote p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.quote footer { margin-top: 12px; font-size: .9375rem; font-weight: 500; color: var(--ink-soft); }
.inclusive { grid-column: 2; margin: 4px 0 0; font-size: .9375rem; color: var(--ink-soft); }

/* ---------- 5. sobre ---------- */
.big--light { color: var(--foam); }
.about__photo, .place__photo { margin: 32px 0 0; }
.about__photo img { width: 100%; max-width: 340px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 100%; }
.about__photo figcaption { margin-top: 12px; max-width: 34ch; font-size: .9375rem; color: var(--foam-soft); }
.years { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule-foam); }
.years li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule-foam); }
.years .num { font-family: var(--serif); font-style: italic; font-size: 1.625rem; line-height: 1; color: var(--foam); }
.about__ig { margin: 28px 0 0; color: var(--foam-soft); }
.about__ig a { color: var(--foam); font-weight: 600; }

/* ---------- 6. onde ---------- */
.place__photo img { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; }

/* ---------- 7. fechamento ---------- */
.close { padding: clamp(88px, 12vw, 176px) 0; }
.close__in { display: grid; gap: 36px; justify-items: start; }
.close h2 { max-width: 18ch; }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.close__phone { font-family: var(--serif); font-style: italic; font-size: 1.5rem; text-decoration: none; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--rule-foam); }
.close__phone:hover { border-color: var(--foam); }

/* ---------- rodapé ---------- */
.foot { background: var(--sea-deep); color: var(--foam-soft); border-top: 1px solid var(--rule-foam); padding: 40px 0 48px; font-size: .9375rem; }
.foot__in { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px 32px; }
.foot p { margin: 0; }
.foot__id { color: var(--foam); }
.foot a { color: var(--foam); }
.foot__care { grid-column: 1 / -1; margin-top: 16px !important; padding-top: 16px; border-top: 1px solid var(--rule-foam); }

/* ---------- botão fixo no celular ---------- */
.dock { display: none; }

/* ---------- movimento: uma emergência lenta, uma vez ---------- */
@keyframes tide-in { from { transform: scaleY(.72); } to { transform: scaleY(1); } }
@keyframes develop { from { filter: blur(6px) saturate(.6); opacity: .55; } to { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sky::after, .hero__portrait img { animation: none; }
  .btn { transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero__grid { min-height: 0; padding-top: clamp(40px, 7vw, 64px); }
  .tide { grid-template-columns: auto minmax(0, 1fr); align-content: center; gap: 4px 16px; }
  .tide__status { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .table-section { grid-template-columns: minmax(0, 1fr); }
  .table-section__head { position: static; }
  .inclusive { grid-column: 1; }
  .about__photo img, .place__photo img { max-width: 420px; }
  .place__photo img { aspect-ratio: 4 / 3; }
}

/* ---------- celular ---------- */
@media (max-width: 760px) {
  :root { --topbar: 58px; }
  .topbar .btn--small { display: none; }
  .brand__name { font-size: 1.25rem; }

  .hero__sky::after { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; padding-top: 0; }
  .hero__portrait { order: -1; margin: 0 calc(var(--gutter) * -1); }
  .hero__portrait img { aspect-ratio: 5 / 4; max-height: none; object-position: 50% 32%; box-shadow: none; }
  .hero__copy { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.125rem, 1.2rem + 4.6vw, 2.75rem); }
  .hero__id { gap: 2px 14px; }
  .hero__actions { margin-bottom: 36px; }
  .tide {
    height: auto; margin: 0 calc(var(--gutter) * -1); padding: 20px var(--gutter) 4px;
    background: var(--sea); border-top: 1px solid var(--ink);
  }

  .row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0 18px; }
  .hours > span:first-child { flex-basis: 100%; }
  .row dt { padding-top: 0; }
  .years li { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 16px; }

  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .dock {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 54px; border-radius: 3px;
    background: var(--magenta); color: #fff; text-decoration: none;
    font: 600 1.0625rem/1 var(--sans);
    box-shadow: 0 12px 30px -10px rgba(12, 46, 50, .55);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
  }
  /* some enquanto o botão principal do topo está visível */
  .dock.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .dock { transition: none; } }
