/*
Theme Name: Arruda Pires
Theme URI: https://arrudapires.com.br
Author: Arruda Pires Associados
Description: Tema institucional personalizado para Arruda Pires Associados.
Version: 2.0.0
Text Domain: arruda-pires
*/

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cinzel-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/montserrat-medium.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Metropolis";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/metropolis-regular.woff2") format("woff2");
}

:root {
  --ap-navy: #0c264f;
  --ap-gold: #c5a059;
  --ap-beige: #f4f0e9;
  --ap-graphite: #5a5a5a;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ap-graphite);
  background: #fff;
  font-family: "Metropolis", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-shell {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.site-shell > .wp-block-post-content {
  display: contents;
}

.coming-soon {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 76rem);
  margin: auto;
  padding: clamp(2.5rem, 5vh, 4rem) clamp(1.5rem, 6vw, 6rem);
}

.site-shell > .wp-block-shortcode,
.coming-soon > .wp-block-shortcode {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: clamp(1rem, 4vw, 3rem);
  margin: 0;
}

.brand-card {
  width: min(100%, 52rem);
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(100%, 42rem);
  height: auto;
  margin: 0 auto clamp(2rem, 4vh, 3rem);
  filter: drop-shadow(0 1rem 1.5rem rgba(12, 38, 79, 0.08));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  color: var(--ap-graphite);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  width: 2.25rem;
  height: 1px;
  background: var(--ap-gold);
  content: "";
}

.page-title {
  margin: 0;
  color: var(--ap-navy);
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.page-title > span,
.page-title em {
  display: block;
  white-space: nowrap;
}

.page-title em {
  color: var(--ap-gold);
  font-style: normal;
  font-weight: 400;
}

.intro {
  width: min(100%, 32rem);
  margin: clamp(1.5rem, 3vh, 2rem) auto 0;
  color: var(--ap-graphite);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  font-weight: 400;
  line-height: 1.75;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: clamp(1.75rem, 3vh, 2.25rem);
  padding: 0.72rem 1rem;
  border: 1px solid rgba(12, 38, 79, 0.12);
  border-radius: 999px;
  color: var(--ap-navy);
  background: rgba(255, 255, 255, 0.82);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ap-gold);
  box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.45);
  animation: status-pulse 2.4s ease-out infinite;
}

.site-footer {
  position: static;
  justify-self: end;
  padding: 0 clamp(1.25rem, 5vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  color: rgba(12, 38, 79, 0.55);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@keyframes status-pulse {
  70% {
    box-shadow: 0 0 0 0.55rem rgba(197, 160, 89, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
  }
}

@media (max-width: 640px) {
  .coming-soon {
    align-self: start;
    margin: 0 auto;
    padding: clamp(1rem, 4vh, 2rem) 1.25rem;
  }

  .brand-logo {
    width: min(100%, 20rem);
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
  }

  .eyebrow {
    margin-bottom: 0.7rem;
  }

  .page-title {
    font-size: clamp(1.5rem, 7.4vw, 1.95rem);
    line-height: 1.03;
  }

  .intro {
    max-width: 28rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .status {
    margin-top: 1rem;
    padding: 0.62rem 0.85rem;
  }

  .site-footer {
    justify-self: center;
    padding: 0 1.25rem max(0.9rem, env(safe-area-inset-bottom));
    text-align: center;
  }
}

@media (min-width: 641px) and (max-height: 760px) {
  .coming-soon {
    padding: 1.25rem 3rem;
  }

  .brand-logo {
    width: min(100%, 30rem);
    margin-bottom: 1rem;
  }

  .eyebrow {
    margin-bottom: 0.65rem;
  }

  .page-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
  }

  .intro {
    margin-top: 0.85rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .status {
    margin-top: 1rem;
    padding: 0.62rem 0.85rem;
  }

  .site-footer {
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 640px) and (max-height: 700px) {
  .coming-soon {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: 0.75rem;
  }

  .brand-logo {
    width: min(100%, 18rem);
    margin-bottom: 0.75rem;
  }

  .eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
  }

  .page-title {
    font-size: clamp(1.4rem, 7vw, 1.68rem);
  }

  .intro {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .status {
    margin-top: 0.75rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .site-footer {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }
}

/* Block editor and institutional templates. */
.brand-logo img {
  width: 100%;
  height: auto;
}

.status p,
.site-footer p {
  margin: 0;
}

.ap-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 5.75rem;
  padding: 0.75rem max(5vw, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(12, 38, 79, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.ap-header-logo {
  flex: 0 0 auto;
  width: clamp(11rem, 17vw, 14rem);
  margin: 0;
}

.ap-header-logo img {
  width: 100%;
  height: auto;
}

.ap-site-header .wp-block-navigation {
  margin-left: auto;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ap-site-header .wp-block-navigation a,
.ap-language-switcher a {
  text-decoration: none;
}

.ap-language-switcher ul {
  display: flex;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-language-switcher a {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(12, 38, 79, 0.15);
  border-radius: 50%;
  color: var(--ap-navy);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.61rem;
  font-weight: 700;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.ap-language-switcher a:hover,
.ap-language-switcher a:focus-visible,
.ap-language-switcher a[aria-current="page"] {
  border-color: var(--ap-gold);
  color: var(--ap-navy);
  background: var(--ap-gold);
}

.ap-content-shell,
.ap-article-shell,
.ap-empty-state {
  min-height: 58vh;
  padding: clamp(4rem, 8vw, 8rem) max(6vw, calc((100vw - 1240px) / 2));
}

.ap-content-shell > .wp-block-post-title,
.ap-article-shell > .wp-block-post-title {
  max-width: 16ch;
  text-wrap: balance;
}

.ap-content-shell .wp-block-post-content,
.ap-article-shell .wp-block-post-content {
  color: #343b46;
}

.ap-content-shell .wp-block-post-content > * + *,
.ap-article-shell .wp-block-post-content > * + * {
  margin-block-start: 1.4rem;
}

.ap-post-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid rgba(12, 38, 79, 0.12);
  background: #fff;
}

.ap-post-card .wp-block-post-date,
.ap-post-card .wp-block-post-terms {
  color: var(--ap-gold);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ap-institutional-hero {
  padding: clamp(5rem, 10vw, 10rem) max(6vw, calc((100vw - 1240px) / 2));
  background: var(--ap-beige);
}

.ap-institutional-body {
  padding: clamp(4rem, 8vw, 8rem) 6vw;
}

.ap-eyebrow {
  color: var(--ap-gold);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ap-site-footer {
  max-width: none !important;
  padding: clamp(3rem, 6vw, 5rem) max(6vw, calc((100vw - 1240px) / 2)) 2rem;
  color: rgba(255, 255, 255, 0.7);
  background: #071b38;
}

.ap-site-footer h2,
.ap-site-footer h3 {
  color: #fff;
}

.ap-site-footer h3 {
  color: var(--ap-gold);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ap-site-footer .wp-block-separator {
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 780px) {
  .ap-site-header {
    min-height: 4.75rem;
    padding-inline: 1.25rem;
  }

  .ap-header-logo {
    width: 10.5rem;
  }

  .ap-site-header .wp-block-navigation {
    order: 3;
    margin-left: 0;
  }

  .ap-language-switcher a {
    width: 1.75rem;
    height: 1.75rem;
  }

  .ap-content-shell,
  .ap-article-shell,
  .ap-empty-state {
    padding-inline: 6vw;
  }

  .ap-content-shell .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr;
  }
}
