:root {
  --bg: #dde6da;
  --ink: #3c4a32;         /* verde da marca */
  --muted: #505d4b;
  --line: rgba(60, 74, 50, 0.14);
  --focus: #3c4a32;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; }

[hidden] { display: none !important; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Mobile (base)
   ========================================================= */
.page {
  max-width: 480px;
  margin: 0 auto;
  /* margem superior + área segura (notch / Dynamic Island do iPhone) */
  padding-top: calc(16px + env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: clamp(340px, 100vw, 440px);
  margin: 0 10px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background: linear-gradient(115deg, #cfdccb 0%, #d8e2d4 55%, var(--bg) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero__photo {
  position: relative;
}

.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 22%;   /* mantém o rosto enquadrado */
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent);
          mask-image: linear-gradient(to right, #000 72%, transparent);
}

.hero__brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 24px 14px 12px 4px;
}

/* nome centralizado no espaço acima dos ícones;
   "Dra." em uma linha, o nome completo sem quebra na linha de baixo */
.brand__name {
  margin: auto 0;
  font-family: var(--serif);
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.brand__fullname {
  display: block;
  white-space: nowrap;
}

/* ícones na base do topo, junto ao início dos menus */
.socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* área de toque 44px, ícone visual 34px */
.social {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  font-size: 16px;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.social::before {
  content: "";
  position: absolute;
  inset: -5px;
}

/* ---------- Link cards ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 16px 0;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(60, 74, 50, 0.06), 0 8px 20px -14px rgba(60, 74, 50, 0.25);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
  animation: rise .6s var(--ease) backwards;
}
.card:nth-child(2) { animation-delay: 60ms; }
.card:nth-child(3) { animation-delay: 120ms; }

.card:active { transform: scale(.985); }

.card__icon {
  flex: none;
  font-size: 20px;
  stroke-width: 1.3;
  color: var(--ink);
}

.card__label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.card__arrow {
  flex: none;
  font-size: 16px;
  color: var(--muted);
  transition: transform .3s var(--ease);
}

button.card { width: 100%; text-align: left; }

/* ---------- Escolha do app de mapas (celular) ---------- */
.sheet {
  width: 100%;
  max-width: 480px;
  max-height: none;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.sheet::backdrop {
  background: rgba(30, 38, 26, 0.4);
}
.sheet[open] .sheet__panel { animation: sheet-up .3s var(--ease); }

.sheet__panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--bg);
  box-shadow: 0 -10px 30px -12px rgba(30, 38, 26, 0.35);
}

.sheet__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 6px;
  border-radius: 2px;
  background: rgba(60, 74, 50, 0.25);
}

.sheet__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}

.sheet__address {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
}

.sheet__cancel {
  min-height: 48px;
  border: 0;
  background: none;
  color: var(--muted);
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;   /* fica sempre no fim da tela */
  padding: 56px 16px 0;
  text-align: center;
}

.footer__copy {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Hover (somente dispositivos com mouse) ---------- */
@media (hover: hover) and (pointer: fine) {
  .social:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.85); }
  .card:hover { background: rgba(255, 255, 255, 0.85); }
  .card:hover .card__arrow { transform: translateX(3px); color: var(--ink); }
}

/* ---------- Telas muito estreitas (≤ 359px) ---------- */
@media (max-width: 359px) {
  .hero { grid-template-columns: 40% 60%; }
  .card { gap: 12px; padding: 12px 14px; }
  .card__label { font-size: 14px; }
}

/* =========================================================
   Tablet (600px – 959px): coluna central ampliada
   ========================================================= */
@media (min-width: 600px) {
  .page { max-width: 560px; }
  .hero {
    min-height: 440px;
    margin: 8px 0 0;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
  }
  .hero__brand { padding: 32px 28px 16px 8px; }
  .brand__name { font-size: 38px; }
  .links { gap: 12px; padding: 8px 24px 0; }
  .card { min-height: 60px; padding: 12px 22px; }
  .card__label { font-size: 16px; }
}

/* =========================================================
   Desktop (≥ 960px): tela dividida — foto fixa à esquerda
   ========================================================= */
@media (min-width: 960px) {
  .page {
    max-width: none;
    margin: 0 0 0 42vw;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 56px clamp(40px, 6vw, 96px) 28px;
  }
  .page > * { width: 100%; max-width: 560px; margin-inline: auto; }

  .hero {
    display: block;
    min-height: 0;
    margin-top: auto;   /* centraliza o conteúdo no espaço acima do rodapé */
    border-radius: 0;
    overflow: visible;
    background: none;
  }
  .hero::after { content: none; }

  .hero__photo {
    position: fixed;
    inset: 0 auto 0 0;
    width: 42vw;
    max-width: none;
    margin: 0;
  }
  .hero__photo::after {
    /* funde a foto com o conteúdo */
    content: "";
    position: absolute;
    inset: 0 -2px 0 auto;   /* cobre a linha de subpixel na emenda */
    width: 30%;
    background: linear-gradient(to right, transparent, var(--bg));
  }
  .hero__photo img {
    -webkit-mask-image: none;
            mask-image: none;
    object-position: 42% 18%;
  }

  .hero__brand { padding: 0 0 8px; }
  .brand__name { font-size: 60px; }
  .socials { gap: 14px; margin-top: 24px; }
  .social { width: 40px; height: 40px; border-radius: 11px; font-size: 18px; }
  .social::before { inset: -2px; }

  .links { gap: 12px; padding: 24px 0 0; }
  .card { min-height: 62px; }

  .footer { padding-top: 72px; }
}

@media (min-width: 1440px) {
  .page { margin-left: 46vw; }
  .page > * { max-width: 600px; }
  .hero__photo { width: 46vw; }
  .card__label { font-size: 16.5px; }
}

/* ---------- Animação ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

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