/* ========================================
   Pertence Arquitetura — ContactPage
   Alinhado ao Design System do site principal
   ======================================== */

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

/* Design Tokens — espelhados do site principal */
:root {
  /* Paleta Marca */
  --brand-dark: #62594A;
  --brand-light: #E6DFD5;
  --brand-accent: #AA8E6E;

  /* Variações */
  --brand-dark-dark: #4A4237;
  --brand-dark-light: #655B52;
  --brand-light-dark: #D4CABB;
  --brand-light-light: #F2EDE6;
  --brand-accent-dark: #8B7358;
  --brand-accent-light: #CCBAA3;

  /* Mapeamento Funcional */
  --bg-primary: var(--brand-light-light);
  --bg-secondary: var(--brand-light);
  --bg-dark: var(--brand-dark-dark);
  --text-primary: var(--brand-dark-dark);
  --text-secondary: var(--brand-dark);
  --text-muted: var(--brand-dark-light);
  --text-on-dark: var(--brand-light-light);
  --brand-accent-text: #624A2E;
  --border-subtle: var(--brand-light);
  --border-brand: color-mix(in srgb, var(--brand-dark) 10%, transparent);
  --border-brand-strong: color-mix(in srgb, var(--brand-dark) 15%, transparent);

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Libre Franklin', 'Helvetica Neue', system-ui, sans-serif;

  /* Transições */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 300ms var(--ease-premium);

  /* Sombras */
  --shadow-card: 0 4px 20px color-mix(in srgb, var(--brand-dark-dark) 6%, transparent);
  --shadow-hover: 0 8px 30px color-mix(in srgb, var(--brand-dark-dark) 12%, transparent);
}

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

img, picture, video, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

ul, ol {
  list-style: none;
}

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

/* Estilos Base */
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
}

/* Header */
header {
  text-align: center;
  padding: 20px;
}

#logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto 15px;
}

#title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 2rem;
  margin-top: 10px;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

.tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--brand-accent);
  margin-top: 12px;
}

/* CTA Container */
.cta-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 48px auto;
  padding: 0 20px;
}

/* CTAs */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1.5px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  min-height: 44px;
}

.cta i {
  margin-right: 12px;
  font-size: 1.2rem;
}

.cta span {
  display: inline-block;
}

/* Primário */
.cta.primary {
  background-color: var(--bg-dark);
  color: var(--brand-light);
  border-color: var(--bg-dark);
}

.cta.primary:hover,
.cta.primary:focus {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--brand-light-light);
  transform: translateY(-2px);
}

/* Highlight */
.cta.highlight {
  font-size: 0.9rem;
  padding: 18px 24px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-accent) 25%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand-accent) 0%, transparent); }
}

/* Secundário */
.cta.secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.cta.secondary:hover,
.cta.secondary:focus {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--brand-light-light);
  transform: translateY(-2px);
}

/* Terciário */
.cta.tertiary {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.cta.tertiary:hover,
.cta.tertiary:focus {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: translateY(-2px);
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-bar i {
  color: var(--brand-accent);
  font-size: 0.85rem;
}

.trust-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--transition);
}

.trust-bar a:hover,
.trust-bar a:focus {
  color: var(--brand-accent);
}

/* Testimonial */
.testimonial-bar {
  max-width: 560px;
  margin: 30px auto 10px;
  padding: 0 20px;
  text-align: center;
}

.testimonial-bar blockquote {
  background: var(--brand-light-light);
  border-radius: 0;
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--brand-accent);
}

.testimonial-bar p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 8px;
}

.testimonial-bar cite {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-style: normal;
}

/* Footer */
.footer {
  background-color: var(--bg-primary);
  padding: 24px 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.footer-link:hover,
.footer-link:focus {
  background-color: var(--brand-accent);
  color: var(--brand-light-light);
  border-color: var(--brand-accent);
}

.footer-social {
  font-size: 1.15rem;
}

/* Responsividade */
@media (min-width: 600px) {
  .cta-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .cta {
    width: 45%;
  }
}

/* Acessibilidade: Foco Visível */
:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 0;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .cta,
  .footer-link,
  .trust-bar a {
    transition: none;
  }

  .cta.highlight {
    animation: none;
  }
}

/* Touch: min tap target */
@media (max-width: 767px) {
  a, button, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}
