/* ============================
   GLOBAL STYLES - PSICODAY PREMIUM
   ============================ */
@import 'variables.css';
@import 'animations.css';

/* ── Reset ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  background: var(--color-off-white);
  /* Subtle Texture Overlay */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23023938' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-petrol-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl);  }

p { margin-bottom: var(--space-md); }

/* ── Acessibilidade ──
   Foco visivel unico para todo o site. Antes so os campos de formulario
   tinham estilo de foco, o que deixava menu e cards sem indicacao para
   quem navega por teclado. */
:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Texto so para leitores de tela (nomes acessiveis distintos em links
   repetidos como "Saiba mais"). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Pula direto para o conteudo, primeiro item da ordem de tabulacao. */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 1100;
  padding: 0.8rem 1.4rem;
  background: var(--color-petrol-primary);
  color: var(--color-off-white);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-md);
}


/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Section ── */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}
.section--alt {
  background: var(--color-beige-soft);
}

/* Secao escura institucional (verde petroleo). Vive aqui, e nao em
   home.css, porque agora e usada tanto na home quanto em /empresas/. */
.section--dark {
  background: var(--color-petrol-primary);
  color: var(--color-sage-soft);
}
.section--dark .section__title,
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-off-white);
}
.section--dark .section__subtitle {
  color: var(--color-sage-soft);
}
.section--dark .section__badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-gold-light);
}

/* ── Section Header ── */
.section__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(103, 124, 90, 0.12);
  color: var(--color-petrol-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-lg);
}
.section__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  max-width: 640px;
}
.section__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}
.section__header .section__subtitle {
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  padding: 1rem 2.4rem;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-petrol-primary);
  color: var(--color-neutral-white);
  box-shadow: var(--shadow-petrol-md);
}
.btn--primary:hover {
  background: var(--color-petrol-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-petrol-lg);
}

.btn--outline {
  border: 2px solid var(--color-petrol-primary);
  color: var(--color-petrol-primary);
  background: transparent;
}
.btn--outline:hover {
  background: var(--color-petrol-primary);
  color: var(--color-neutral-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-petrol-md);
}

/* CTA dourado (Solicitar Orcamento, Saiba mais) */
.btn--gold {
  background: var(--gradient-gold);
  color: var(--color-petrol-deep);
  box-shadow: var(--shadow-petrol-md);
}
.btn--gold:hover {
  background: var(--gradient-gold-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-petrol-lg);
}

/* Verde oficial do WhatsApp: usado so onde o reconhecimento da marca
   importa, nunca absorvido pela paleta institucional. */
.btn--whatsapp {
  background: #25D366;
  color: var(--color-neutral-white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover {
  background: #1EBE5A;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

/* Botao de contorno sobre fundo escuro. */
.btn--on-dark {
  border-color: var(--color-off-white);
  color: var(--color-off-white);
}
.btn--on-dark:hover {
  background: var(--color-off-white);
  color: var(--color-petrol-dark);
  border-color: var(--color-off-white);
}

.btn--block {
  width: 100%;
}

/* Rodape de secao: usado nos "Ver todos..." abaixo das grades. */
.section__footer {
  margin-top: var(--space-2xl);
  text-align: center;
}

.cta-band__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn--sm {
  font-size: var(--fs-sm);
  padding: 0.7rem 1.6rem;
}
.btn--lg {
  font-size: var(--fs-md);
  padding: 1.2rem 3rem;
}

/* ── Cards & Elements ── */
.card {
  background: var(--color-neutral-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-petrol-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
}
.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

/* ── Glass Effect ── */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
}

@media (max-width: 768px) {
  .section { padding: var(--space-3xl) 0; }
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  .logo-signature { font-size: 1.8rem; }
}
