/* Sistema Premium para Páginas Internas */
/* Baseado no visual refinado da home e página NoemIA */

:root {
  --bg-ivory: #f6f1e8;
  --bg-soft: #fbf8f2;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #10261d;
  --ink-soft: #4d6158;
  --gold: #b58d49;
  --gold-soft: #ead7af;
  --gold-deep: #8c6b30;
  --line: rgba(16, 38, 29, 0.15);
  --shadow: 0 24px 70px rgba(14, 28, 23, 0.09);
  --shadow-soft: 0 14px 34px rgba(16, 38, 29, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1240px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Reset e Base */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-ivory);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, p {
  margin: 0;
}

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

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

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

/* Page Shell */
.page-shell {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(181, 141, 73, 0.10), transparent 24%),
    linear-gradient(180deg, #f7f4ef 0%, #f2eee7 100%);
}

/* Header Premium */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(246, 241, 232, 0.78);
  border-bottom: 1px solid rgba(16, 38, 29, 0.06);
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--gold-deep);
}

/* Hero Interno */
.internal-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 6vw, 78px) 0 clamp(64px, 8vw, 100px);
}

.internal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(234, 215, 175, 0.16), transparent 0 24%),
    radial-gradient(circle at 82% 14%, rgba(181, 141, 73, 0.18), transparent 0 18%),
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0));
  z-index: -2;
}

.internal-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,141,73,0.16) 0%, rgba(181,141,73,0) 68%);
  filter: blur(16px);
  z-index: -1;
}

.internal-hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.internal-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.internal-hero-copy p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 58ch;
}

.internal-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container Principal */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 auto;
}

/* Cards Premium */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.card-header p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-content {
  color: var(--ink);
  line-height: 1.75;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Botões Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(181, 141, 73, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(181, 141, 73, 0.35);
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--gold);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Formulários Premium */
.form-group {
  margin-bottom: 1.5rem;
}

/* Labels Premium */
.form-group label,
.form-label {
  display: block;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #666666;
  font-weight: 400;
  opacity: 0.8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 0 4px rgba(181, 141, 73, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2310261d' d='M1 1l5 5 5-5' stroke='%2310261d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 12px 8px;
  padding-right: 3rem;
  appearance: none;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Validação e Estados */
.form-input:invalid,
.form-select:invalid,
.form-textarea:invalid {
  border-color: #dc3545;
  background: #fff5f5;
}

.form-input:valid,
.form-select:valid,
.form-textarea:valid {
  border-color: #28a745;
}

/* Botões de Formulário Premium */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-form {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-form:hover::before {
  left: 100%;
}

.btn-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-form:active {
  transform: translateY(0);
}

/* Footer Premium */
.footer {
  background: var(--ink);
  color: var(--bg-ivory);
  padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 6vw, 48px);
  margin-top: clamp(64px, 10vw, 120px);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.footer-section p,
.footer-section a {
  color: rgba(246, 241, 232, 0.8);
  line-height: 1.75;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .internal-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .footer-bottom {
    padding: 2rem 1rem 0;
    flex-direction: column;
    text-align: center;
  }
}

/* Elementos Decorativos */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: clamp(32px, 6vw, 64px) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--gold-soft);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Animações sutis */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
