/* ==========================================================================
   Olaria Artesanal Norberto Batalha, Unipessoal
   Landing "one screen" — mosaic de fotografias + identidade editorial.
   Sem pedidos a terceiros: fontes self-hosted, mapa/formulário próprios.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dmsans-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dmsans-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --cream: #F5EDE3;
  --cream-dim: rgba(245, 237, 227, .72);
  --ink: #1B120E;
  --terra: #B4552D;
  --terra-hi: #C97748;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

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

html, body {
  min-height: 100%;
  background: #130C09;
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- mosaico de fundo ---------- */

.mosaic {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('tiles/mosaic-desktop.webp?v=20261118b');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #130C09;
  pointer-events: none;
  animation: mosaic-in 1.4s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes mosaic-in {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: none; }
}

}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(115% 90% at 50% 40%, rgba(19, 12, 9, .26) 0%, rgba(19, 12, 9, .58) 68%, rgba(19, 12, 9, .8) 100%),
    linear-gradient(180deg, rgba(19, 12, 9, .55) 0%, rgba(19, 12, 9, .22) 30%, rgba(19, 12, 9, .55) 78%, rgba(19, 12, 9, .86) 100%);
}

/* ---------- palco ---------- */

.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.2vh, 1.75rem);
  padding: clamp(3rem, 8vh, 5rem) 1.5rem clamp(3rem, 8vh, 5rem);
  text-align: center;
}

.brand-badge {
  width: clamp(96px, 11vw, 124px);
  padding: 8px;
  border-radius: 6px;
  background: var(--cream);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0;
  animation: rise .9s .15s cubic-bezier(.16, 1, .3, 1) forwards;
}
.brand-badge img { width: 100%; height: auto; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(245, 237, 227, .88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 18px rgba(0, 0, 0, .45);
  opacity: 0;
  animation: rise .9s .25s cubic-bezier(.16, 1, .3, 1) forwards;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 6.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.012em;
  max-width: 18ch;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .7),
    0 3px 10px rgba(0, 0, 0, .55),
    0 14px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  animation: rise 1s .3s cubic-bezier(.16, 1, .3, 1) forwards;
}
h1 em {
  font-style: italic;
  font-weight: 500;
  color: #DE8B5A;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .7),
    0 3px 12px rgba(0, 0, 0, .5);
}

.lede {
  font-size: clamp(.98rem, 1.15vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 237, 227, .9);
  max-width: 46ch;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 2px 14px rgba(0, 0, 0, .5);
  opacity: 0;
  animation: rise 1s .42s cubic-bezier(.16, 1, .3, 1) forwards;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  margin-top: .4rem;
  opacity: 0;
  animation: rise 1s .55s cubic-bezier(.16, 1, .3, 1) forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-1px); }

.btn--solid {
  background: var(--terra);
  color: #FFF8F1;
  border-color: var(--terra);
}
.btn--solid:hover { background: #A34A26; border-color: #A34A26; }

.btn--ghost {
  background: rgba(245, 237, 227, .07);
  color: var(--cream);
  border-color: rgba(245, 237, 227, .32);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--cream); background: rgba(245, 237, 227, .14); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- contactos ---------- */

.contacts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  font-size: .86rem;
  color: rgba(245, 237, 227, .82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  background: linear-gradient(180deg, rgba(19, 12, 9, 0) 0%, rgba(19, 12, 9, .75) 55%);
  opacity: 0;
  animation: rise 1s .7s cubic-bezier(.16, 1, .3, 1) forwards;
}
.contacts__address { font-style: normal; }

.contacts__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem 1.1rem;
}
.contacts a {
  color: var(--cream-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 237, 227, .22);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.contacts a:hover { color: var(--cream); border-color: var(--cream); }
.contacts__sep { opacity: .35; }
.contacts__legal { font-size: .74rem; color: rgba(245, 237, 227, .45); letter-spacing: .02em; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- painel de contacto ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 8, 6, .72);
  backdrop-filter: blur(4px);
  padding: 0;
}
.sheet[hidden] { display: none; }

.sheet__inner {
  width: 100%;
  max-width: 560px;
  max-height: 92svh;
  overflow-y: auto;
  background: #201611;
  border: 1px solid rgba(245, 237, 227, .12);
  border-radius: 18px 18px 0 0;
  padding: 1.6rem 1.5rem 1.8rem;
  text-align: left;
  animation: sheet-up .45s cubic-bezier(.16, 1, .3, 1);
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sheet h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.15;
}
.sheet__sub { font-size: .86rem; color: var(--cream-dim); margin-top: .35rem; }
.sheet__close {
  border: 1px solid rgba(245, 237, 227, .25);
  background: transparent;
  color: var(--cream);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.sheet__close:hover { background: rgba(245, 237, 227, .12); }

.field { margin-top: .95rem; }
.field label {
  display: block;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: .35rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: .7rem .8rem;
  background: rgba(245, 237, 227, .05);
  border: 1px solid rgba(245, 237, 227, .18);
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: .95rem;
}
.field input:focus,
.field textarea:focus { outline: 2px solid var(--terra-hi); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 110px; resize: vertical; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .8rem; }

.check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-top: 1rem;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--cream-dim);
}
.check input { margin-top: .2rem; accent-color: var(--terra); }

/* captcha */
.captcha__row { display: flex; align-items: center; gap: .7rem; }
.captcha__img {
  border-radius: 8px;
  border: 1px solid rgba(245, 237, 227, .18);
  background: #F5EDE3;
  flex: 0 0 auto;
}
.captcha__row input { max-width: 110px; text-align: center; font-size: 1.05rem; letter-spacing: .08em; }
.captcha__help { font-size: .72rem; color: rgba(245, 237, 227, .5); margin-top: .4rem; }
.captcha__q { text-transform: none; letter-spacing: 0; }

/* ---------- telefone internacional (intl-tel-input) ---------- */

.iti {
  width: 100%;
  display: block;
  --iti-dropdown-bg: #2A1D16;
  --iti-border-color: rgba(245, 237, 227, .18);
  --iti-dialcode-color: rgba(245, 237, 227, .62);
  --iti-hover-color: rgba(245, 237, 227, .10);
  --iti-arrow-color: rgba(245, 237, 227, .7);
  --iti-text-gray: rgba(245, 237, 227, .7);
}
.iti .iti__tel-input { width: 100%; }
.iti .iti__selected-country { border-radius: 8px 0 0 8px; }
.iti .iti__selected-country:hover { background: rgba(245, 237, 227, .07); }
.iti .iti__selected-country:focus-visible { outline: 2px solid var(--terra-hi); outline-offset: -2px; }
.iti .iti__selected-dial-code { font-size: .95rem; color: var(--cream); }
.iti .iti__country-list { border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
.iti .iti__country { font-size: .9rem; }
.iti .iti__country.iti__highlight { background: var(--iti-hover-color); }
.iti .iti__search-input {
  background: rgba(245, 237, 227, .06);
  color: var(--cream);
  border: 1px solid rgba(245, 237, 227, .18);
  border-radius: 6px;
}
.iti .iti__search-input::placeholder { color: rgba(245, 237, 227, .45); }
.iti .iti__no-results { color: var(--cream-dim); }
.tel-erro {
  display: none;
  font-size: .74rem;
  color: #E9A183;
  margin-top: .35rem;
}
.tel-erro[data-ativo] { display: block; }

/* honeypot: acessível a bots, invisível para humanos */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.sheet .btn--solid { width: 100%; margin-top: 1.2rem; }

.sheet__note { font-size: .74rem; color: rgba(245, 237, 227, .45); margin-top: .8rem; }

/* ---------- responsivo ---------- */

@media (max-width: 900px) {
  .mosaic {
    background-image: url('tiles/mosaic-mobile.webp?v=20261118b');
  }
  .stage {
    padding: 2.25rem 1.15rem 1.5rem;
    justify-content: center;
  }
  h1 { max-width: 14ch; }
  .lede { max-width: 34ch; font-size: .96rem; }
  .contacts { gap: .45rem; font-size: .82rem; }
  .contacts__row { gap: .3rem .8rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .sheet__inner { border-radius: 16px 16px 0 0; padding: 1.35rem 1.2rem 1.5rem; }
}

@media (max-width: 380px) {
  .btn { padding: .8rem 1.2rem; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brand-badge, .eyebrow, h1, .lede, .actions, .contacts { opacity: 1; }
}

@media print {
  .mosaic, .veil, .sheet { display: none; }
  .stage { color: #000; }
}
