/* ============================================================
   Dai • marcas humanas
   Cores medidas direto do print do site no WordPress.
   Cores e fontes ficam nas variáveis abaixo (:root).
============================================================ */
:root {
  --blue: #003768;        /* azul do site (fundo "sobre", rodapé, títulos, menu) */
  --white: #FFFFFF;       /* fundo das outras seções */
  --on-blue: #F8F8F8;     /* texto sobre o azul */
  --gray: #727272;        /* filtro inativo e textos secundários */
  --placeholder: #EFEFEF; /* só nos marcadores de imagem */

  --font-sans: 'Poppins', system-ui, sans-serif;
  --font-serif: 'Awesome Serif', Georgia, serif;   /* títulos em itálico */

  --max: 1140px;
  --max-narrow: 1108px;
}

@font-face {
  font-family: 'Awesome Serif';
  src: url('../fontes/awesomeserif-regular-webfont-1.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Awesome Serif';
  src: url('../fontes/awesomeserifitalic-regular-webfont.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--blue);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-narrow); }

h1, h2, h3 { color: var(--blue); margin: 0 0 16px; font-weight: 400; }
h1, h2 { font-family: var(--font-serif); line-height: 1.05; letter-spacing: -0.03em; }
h1 { font-size: clamp(38px, 4.4vw, 58px); }
h2 { font-size: clamp(34px, 3.6vw, 48px); }
h3 { font-size: 22px; font-family: var(--font-sans); font-weight: 500; }
.italic { font-style: italic; }
p { margin: 0 0 16px; }

/* ---------- cabeçalho ---------- */
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 24px; }
.header__logo img { height: 40px; width: auto; }
.project-page .header,
.portfolio-page .header { background: var(--blue); }
.project-page .header__logo img,
.portfolio-page .header__logo img { filter: brightness(0) invert(.96); }
.project-page .menu a,
.portfolio-page .menu a,
.project-page .menu-toggle,
.portfolio-page .menu-toggle { color: #F4F4F4; }
.project-page .menu a:hover,
.portfolio-page .menu a:hover { border-bottom-color: #F4F4F4; }
.project-page .menu-toggle svg,
.portfolio-page .menu-toggle svg { fill: currentColor; }
.project-page :focus-visible,
.portfolio-page :focus-visible { outline-color: #F4F4F4; }
.menu { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-size: 16px; color: var(--blue); padding-bottom: 3px; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--blue); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--blue); }
.menu-toggle svg { width: 26px; height: 26px; fill: currentColor; display: block; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 104px; text-align: center; }
.hero h1 { margin-bottom: 4px; }
.hero__title { display: grid; }
.hero__title-full,
.hero__title-typed { grid-area: 1 / 1; }
.hero__title.is-typing .hero__title-full { visibility: hidden; }
.hero__title-typed { visibility: hidden; }
.hero__title.is-typing .hero__title-typed { visibility: visible; }
.hero__title.is-typing .hero__title-typed::after {
  content: "";
  display: inline-block;
  height: .85em;
  margin-left: 3px;
  border-right: 2px solid currentColor;
  vertical-align: -.06em;
  animation: typewriter-caret .8s step-end infinite;
}
.hero p { font-size: 20px; font-weight: 500; color: var(--blue); margin: 0; }
@keyframes typewriter-caret {
  50% { opacity: 0; }
}

/* ---------- sobre (fundo azul) ---------- */
.about { background: var(--blue); color: var(--on-blue); padding: 64px 0 80px; }
.about h2 { color: var(--on-blue); }
.about__text h2 { line-height: .9; }
.about__text h2 span { display: block; }
.about__grid { display: grid; grid-template-columns: 40% 1fr; column-gap: 7%; align-items: center; }
.about__photo { overflow: hidden; border-radius: 20px; }
.about__photo img { width: 100%; }
.about__text p { font-size: 16px; line-height: 1.7; }
.about__text a { color: var(--on-blue); text-decoration: underline; }
.about__text a:hover { opacity: .8; }

/* ---------- serviços ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: #F1EDE3; }
.services__content { width: 100%; max-width: 680px; justify-self: end; align-self: center; padding: 72px clamp(32px, 7vw, 96px); }
.services__content h2 { margin-bottom: 24px; line-height: .9; }
.services__content p { margin: 0 0 20px; line-height: 1.5; }
.services__content .btn { margin-top: 8px; }
.services__photo { min-height: 680px; margin: 0; overflow: hidden; }
.services__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---------- portfólio ---------- */
.portfolio { padding: 88px 0 80px; }
.portfolio__title { margin-bottom: 32px; text-align: center; }
.filters { display: flex; justify-content: center; gap: 30px; margin-bottom: 24px; }
.filter { background: none; border: 0; padding: 0; font: inherit; font-size: 18px; color: var(--gray); cursor: pointer; }
.filter:hover, .filter.is-active { color: var(--blue); }
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.project-card { display: block; overflow: hidden; border-radius: 20px; }
.project-card[hidden] { display: none; }
.project-card img { width: 100%; transition: transform .4s ease; }
.project-card__image--portrait { display: block; aspect-ratio: 4 / 5; object-fit: contain; }
.project-card:hover img { transform: scale(1.03); }

/* ---------- páginas internas ---------- */
.page { padding: 80px 0 96px; }
.page__body { max-width: 720px; }
.note-box { border: 2px dashed rgba(0,55,104,.3); border-radius: 8px; padding: 20px 24px; color: var(--gray); font-size: 15px; }
.back { display: inline-block; margin-bottom: 20px; font-size: 14px; color: var(--gray); text-decoration: none; }
.back:hover { color: var(--blue); }

/* ---------- página de projeto ---------- */
.project-hero { padding: 40px 0 0; }
.project-cover { max-width: var(--max); margin: 0 auto 40px; padding: 0 24px; }
.project-cover img { width: 100%; height: auto; }
.project-hero__content { max-width: 760px; margin: 0 auto; text-align: center; }
.project-hero__content h1 { margin-bottom: 2px; }
.lead { font-size: 18px; color: var(--blue); max-width: 620px; margin: 0 auto 28px; }
.project-hero__details { max-width: 760px; margin: 0 auto; }
.project-credits { margin: 32px 0 0; }
.project-credits > div { display: grid; grid-template-columns: minmax(240px, .8fr) 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid rgba(0,55,104,.15); }
.project-credits dt { font-size: 14px; font-weight: 500; }
.project-credits dd { margin: 0; font-size: 14px; color: var(--gray); }
.project-story { max-width: 760px; margin: 0 auto; color: var(--gray); font-size: 17px; line-height: 1.8; }
.project-body { width: 100%; max-width: none; text-align: center; padding-bottom: 80px; }
.project-body h2 { font-family: var(--font-sans); font-weight: 500; letter-spacing: 0; margin-top: 48px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; align-items: start; }
.gallery img, .gallery .ph { width: 100%; }
.gallery .full { grid-column: 1 / -1; }
.project-gallery-section { margin: 64px 0 80px; }
.project-section-title { margin-bottom: 24px; font-family: var(--font-sans); font-size: 28px; font-weight: 500; letter-spacing: 0; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.project-gallery--single-column { grid-template-columns: minmax(0, 1fr); }
.project-gallery--applications { grid-template-columns: minmax(0, 1fr); }
.project-gallery__item { margin: 0; overflow: hidden; background: #F8F2EC; }
.project-gallery__item img { width: 100%; height: auto; }
.project-gallery__item--wide { grid-column: 1 / -1; }
.project-gallery--applications .project-gallery__item--paired { grid-column: span 1; }
@media (min-width: 771px) {
  .project-gallery--applications { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-gallery--applications .project-gallery__item:not(.project-gallery__item--paired) { grid-column: 1 / -1; }
}
.ph {
  background: var(--placeholder);
  min-height: 220px; aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--gray); font-size: 14px; padding: 16px;
}
.ph--wide { aspect-ratio: 16 / 10; }
.ph--square { aspect-ratio: 1 / 1; }
.btn {
  display: inline-block; padding: 14px 30px; border: 2px solid var(--blue); border-radius: 999px;
  background: var(--blue); color: var(--on-blue); font-weight: 500; text-align: center; text-decoration: none;
  transition: transform .25s ease, background-color .2s ease, color .2s ease;
}
.btn:hover,
.btn:focus-visible { background: transparent; color: var(--blue); }
.pager { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 40px 0 8px; margin-top: 48px; border-top: 1px solid rgba(0,55,104,.15); }
.pager a { text-decoration: none; color: var(--blue); font-family: var(--font-serif); font-size: 22px; }
.pager a:hover { text-decoration: underline; }

/* ---------- rodapé ---------- */
.footer { background: var(--blue); color: var(--on-blue); text-align: center; padding: 22px 0; font-size: 15px; }
.footer p { margin: 0; }

/* ---------- página temporária ---------- */
.coming-soon-page {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(110deg, #003768 0%, #002240 100%);
  color: var(--on-blue);
}
.coming-soon {
  width: min(100%, 640px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.coming-soon__content { width: 100%; }
.coming-soon__content h1 {
  color: var(--on-blue);
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: .98;
  letter-spacing: -.04em;
  margin-bottom: 18px;
}
.coming-soon__content h1 em { font-weight: 400; }
.coming-soon__content p {
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.35;
}
.coming-soon__content p a { color: inherit; text-underline-offset: 4px; }
.coming-soon__content p a:hover { text-decoration-thickness: 2px; }
.coming-soon__button {
  display: inline-block;
  margin: 0;
  padding: 11px 24px;
  border: 1px solid var(--on-blue);
  border-radius: 999px;
  background: var(--on-blue);
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.coming-soon__button:hover,
.coming-soon__button:focus-visible { background: transparent; color: var(--on-blue); transform: translateY(-2px); }
.coming-soon-page :focus-visible { outline-color: var(--on-blue); }
.coming-soon__signoff { margin-top: 48px; }
.coming-soon__signoff p { margin: 0; font-size: 18px; line-height: 1.5; }
.coming-soon__heart { display: inline; width: .7em; height: auto; vertical-align: -.15em; }
.coming-soon__signature { width: 120px; height: auto; margin: 34px auto 0; }

/* ---------- links da bio ---------- */
.bio-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.bio-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.bio-card { width: min(100%, 400px); text-align: center; }
.bio-card__portrait {
  width: 220px;
  aspect-ratio: 1;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
}
.bio-card h1 { margin: 0 0 10px; font-size: 32px; font-style: italic; }
.bio-card__intro { color: var(--gray); font-size: 13px; line-height: 1.4; margin: 0 0 22px; }
.bio-card__intro strong { font-weight: 600; }
.bio-links { display: grid; gap: 14px; }
.bio-links__item {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  transition: transform .3s ease;
}
.bio-links__item img { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .bio-links__item:hover { transform: scale(1.1); }
  .bio-links__item:focus-visible { transform: scale(1.04); }
}
.bio-social { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.bio-social a {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--on-blue);
  transition: transform .3s ease, background-color .2s ease;
}
.bio-social a:hover { background: #07528e; }
.bio-social svg { width: 24px; height: 24px; fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .bio-social a:hover { transform: scale(1.1); }
  .bio-social a:focus-visible { transform: scale(1.04); }
}
.bio-footer { width: 100%; background: var(--blue); color: var(--on-blue); text-align: center; padding: 20px 0; font-size: 13px; }
.bio-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover,
  .btn:focus-visible { transform: scale(1.05); }
  .about__photo img { transition: transform .3s ease; }
  .about__photo:hover img { transform: scale(1.05); }
}

/* ---------- tablet e celular ---------- */
@media (max-width: 1024px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 770px) {
  .hero { padding: 56px 0 64px; }
  .hero p { font-size: 18px; font-weight: normal; }
  .about { padding: 56px 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo img { max-width: 420px; margin: 0 auto; }
  .services { grid-template-columns: 1fr; }
  .services__content { max-width: 620px; justify-self: center; padding: 56px 24px; }
  .services__photo { min-height: 0; }
  .services__photo img { aspect-ratio: 4 / 5; }
  .portfolio { padding: 56px 0; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; gap: 14px; }
  .project-gallery__item--wide { grid-column: auto; }
  .project-gallery--applications { grid-template-columns: minmax(0, 1fr); }
  .project-gallery--applications .project-gallery__item--paired { grid-column: auto; }
  .bio-main { padding: 32px 22px; }
  .bio-card { width: 100%; max-width: 400px; }
  .bio-social { margin-top: 34px; }
  .project-story { font-size: 16px; }
  .project-gallery-section { margin: 48px 0 56px; }
  .project-hero { padding-top: 32px; }
  .project-cover { margin-bottom: 28px; padding: 0 16px; }
  .project-credits > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .menu-toggle { display: block; margin-left: auto; }
  .header { position: relative; }
  .header__inner { min-height: 80px; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    flex-direction: column; gap: 18px; padding: 24px;
    background: var(--white); border-bottom: 1px solid rgba(0,55,104,.1);
  }
  .project-page .menu,
  .portfolio-page .menu { background: var(--blue); border-bottom-color: rgba(244,244,244,.2); }
  .menu.is-open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
