/* Lucro — Global design system */

:root {
  --color-bg: #f4f7f9;
  --color-bg-warm: #eef6f5;
  --color-surface: #ffffff;
  --color-surface-elevated: #f8fafc;
  --color-surface-muted: #f1f5f9;
  --color-text: #0b1220;
  --color-text-muted: #5c6b7a;
  --color-text-subtle: #94a3b8;
  --color-primary: #0a4a47;
  --color-primary-light: #14b8a6;
  --color-primary-dark: #062f2d;
  --color-accent: #b8941f;
  --color-accent-light: #d4af37;
  --color-accent-soft: rgba(212, 175, 55, 0.12);
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-success: #059669;
  --color-error: #dc2626;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow-sm: 0 2px 8px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.12);
  --shadow-glow: 0 0 0 1px rgba(20, 184, 166, 0.08), 0 12px 40px rgba(13, 74, 71, 0.12);
  --max-width: 1140px;
  --header-height: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover { color: var(--color-primary-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.375rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.625rem); }
h3 { font-size: 1.3125rem; }

p { color: var(--color-text-muted); }

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section--alt {
  background: var(--color-surface);
}

.section--dark {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #0f5c58 100%);
  color: white;
}

.section--dark h2,
.section--dark h3,
.section--dark p { color: white; }

.section--dark p { opacity: 0.82; }

.section--dark .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.section--dark .section-label::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-light), transparent);
  border-radius: 2px;
}

.section-header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 { margin-bottom: 1rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: #ffffff;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav__links a {
  padding: 0.5rem 0.875rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: var(--color-primary);
  background: rgba(13, 74, 71, 0.06);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

/* Buttons */

/* Author display rules (e.g. .btn) must not override the hidden attribute */
[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.625rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f5c58 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(10, 74, 71, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 74, 71, 0.3);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1.5px solid var(--color-border-strong);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn--accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-text);
  box-shadow: 0 2px 12px rgba(184, 148, 31, 0.3);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 148, 31, 0.35);
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
}

.btn--ghost:hover { color: var(--color-primary); }

.btn--sm {
  padding: 0.5625rem 1.125rem;
  font-size: 0.875rem;
}

.btn--full { width: 100%; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Forms */

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.form-input::placeholder { color: var(--color-text-subtle); }

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.form-message {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-top: 1rem;
  display: none;
}

.form-message--success {
  display: block;
  background: rgba(5, 150, 105, 0.08);
  color: var(--color-success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.form-message--error {
  display: block;
  background: rgba(220, 38, 38, 0.06);
  color: var(--color-error);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

/* Cards */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

/* Footer */

.site-footer {
  background: linear-gradient(180deg, #0b1220 0%, #060a12 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 5rem 0 2rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: white; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer__brand .logo {
  color: white;
  margin-bottom: 1.25rem;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1.25rem;
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.75rem; }
.footer__links a { font-size: 0.9375rem; }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Utilities */

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 968px) {
  .section { padding: 4.5rem 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav__links--open { display: flex; }
  .nav__toggle { display: block; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .footer__grid { grid-template-columns: 1fr; }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
