/* ─── Custom Properties ─────────────────────────────────────────────────── */

:root {
  --primary: #123c4a;
  --primary-dark: #0b2c38;
  --background: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #52616b;
  --border: #e3e8ef;
  --soft: #eef3f6;
  --soft-2: #e4ecf0;
  --shadow: 0 24px 70px rgba(15, 35, 45, 0.08);
  --shadow-hover: 0 32px 80px rgba(15, 35, 45, 0.14);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1120px;
  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4a9ab5;
    --primary-dark: #3a8aa5;
    --background: #0d1117;
    --surface: #161b22;
    --text: #e6edf3;
    --muted: #8b949e;
    --border: #30363d;
    --soft: #1c2128;
    --soft-2: #21262d;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 32px 80px rgba(0, 0, 0, 0.45);
  }
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  letter-spacing: -0.065em;
  font-weight: 800;
  max-width: 860px;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  letter-spacing: -0.048em;
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.022em;
  font-weight: 700;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

/* ─── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(227, 232, 239, 0.7);
  transition: background var(--transition), border-color var(--transition);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(13, 17, 23, 0.85);
    border-bottom-color: rgba(48, 54, 61, 0.7);
  }
}

.header-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.brand-text {
  display: grid;
  gap: 0.08rem;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover {
  color: var(--text);
  background: var(--soft);
}

.main-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-button {
  color: white !important;
  background: var(--primary) !important;
  padding: 0.6rem 1.1rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  margin-left: 0.4rem;
  box-shadow: 0 4px 16px rgba(18, 60, 74, 0.2);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.nav-button:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(18, 60, 74, 0.28) !important;
}

.nav-button:hover,
.nav-button:focus {
  background: var(--soft) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  gap: 4px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── Sections ──────────────────────────────────────────────────────────── */

.section-large {
  padding: 110px 0 80px;
}

.section {
  padding: 96px 0;
}

.section-muted {
  background: var(--soft);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(18, 60, 74, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 15% 80%, rgba(18, 60, 74, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 50%, rgba(74, 154, 181, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(18, 60, 74, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 380px;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-text {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy .hero-text:first-of-type {
  margin-top: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 8px 28px rgba(18, 60, 74, 0.22);
}

.button.primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 14px 36px rgba(18, 60, 74, 0.3);
}

.button.secondary {
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
}

.button.secondary:hover {
  background: var(--soft);
  border-color: var(--soft-2);
}

.button.primary-light {
  color: var(--primary-dark);
  background: white;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.button.primary-light:hover {
  background: #f0f4f6;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.button.outline-light {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.button.outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ─── Hero Card ─────────────────────────────────────────────────────────── */

.hero-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(227, 232, 239, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.4rem;
}

@media (prefers-color-scheme: dark) {
  .hero-card {
    background: rgba(22, 27, 34, 0.9);
    border-color: rgba(48, 54, 61, 0.8);
  }
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2f9e6f;
  box-shadow: 0 0 0 5px rgba(47, 158, 111, 0.15);
  flex-shrink: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.feature-list li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ─── Sobre ─────────────────────────────────────────────────────────────── */

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.content-block {
  font-size: 1.04rem;
}

.expertise-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.expertise-badges span {
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ─── Section Headings ──────────────────────────────────────────────────── */

.section-heading {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0.4rem 0 0.9rem;
}

/* ─── Service Cards ─────────────────────────────────────────────────────── */

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--soft-2);
}

.service-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.service-number {
  width: max-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ─── Steps / Timeline ──────────────────────────────────────────────────── */

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 2.8rem;
  position: relative;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(10% + 1px);
  right: calc(10% + 1px);
  height: 1px;
  border-top: 1px dashed var(--border);
  pointer-events: none;
  z-index: 0;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1rem 1.1rem;
  margin: 0 0.5rem;
  position: relative;
  z-index: 1;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--soft-2);
}

.step-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 0.88rem;
  border: 2px solid var(--surface);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--soft);
}

.step-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.step-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ─── Commitment ────────────────────────────────────────────────────────── */

.commitment {
  padding-top: 0;
}

.commitment-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(145deg, var(--surface), var(--soft));
}

@media (prefers-color-scheme: dark) {
  .commitment-box {
    background: linear-gradient(145deg, var(--surface), var(--soft));
  }
}

.commitment-box h2 {
  margin: 0.4rem 0 1rem;
}

.commitment-highlights {
  display: grid;
  gap: 0.75rem;
}

.commitment-highlights span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.94rem;
}

@media (prefers-color-scheme: dark) {
  .commitment-highlights span {
    background: var(--soft-2);
  }
}

/* ─── Contact ───────────────────────────────────────────────────────────── */

.contact-section {
  background: #0b2c38;
  color: white;
}

.contact-section h2 {
  color: white;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}

.contact-card {
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
}

.contact-card h3 {
  color: #1f2933;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-card div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e3e8ef;
}

.contact-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-card dt {
  color: #52616b;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.contact-card dd {
  margin: 0;
  font-weight: 700;
  color: #1f2933;
  font-size: 0.94rem;
}

.contact-card a {
  color: #123c4a;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 28px 0;
  background: #071921;
  color: rgba(255, 255, 255, 0.5);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.88rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ─── Nav Active ────────────────────────────────────────────────────────── */

.main-nav a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--soft);
}

/* ─── Scroll Animations ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .animate-item {
    opacity: 0;
    transform: translateY(20px);
  }

  .animate-item.animate-in {
    opacity: 1;
    transform: none;
    transition:
      opacity 480ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0ms);
  }
}

/* ─── Responsive — 980px ────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-grid,
  .split-section,
  .commitment-box,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .contact-card {
    max-width: 520px;
  }

  .steps-timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1rem;
  }

  .steps-timeline::before {
    display: none;
  }
}

/* ─── Responsive — 760px ────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-large {
    padding: 80px 0 56px;
  }

  .section {
    padding: 68px 0;
  }

  .brand-text small {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 76px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .nav-button {
    margin-top: 0.35rem !important;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
  }

  .steps-timeline::before {
    display: none;
  }

  .step-card {
    margin: 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Reduced Motion ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
