/* ============================================
   Systemdocs — Comunicação e Informática
   Token system
   ============================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --ink: #1A1F2E;
  --ink-soft: #4A4A4A;
  --paper: #F4F6F8;
  --paper-raised: #FFFFFF;
  --blue-deep: #3B6FA0;
  --blue-light: #7FB3E0;
  --accent: #5DD9C1;
  --border: rgba(26, 31, 46, 0.10);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  /* Layout */
  --max-width: 1140px;
  --radius: 14px;
  --header-height: 140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 2px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 248, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  align-self: stretch;
}

.brand-logo {
  height: 120px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  align-items: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  margin-bottom: 1.6rem;
}

.nav-cta:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 4.5rem 0 5.5rem;
  position: relative;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 14, 26, 0.88) 0%,
    rgba(10, 14, 26, 0.7) 45%,
    rgba(10, 14, 26, 0.35) 100%
  );
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 48rem;
}

.hero-lede {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #F4F6F8;
  margin: 0;
}

.services,
.about,
.contact {
  scroll-margin-top: var(--header-height);
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: 5rem 0;
  background: var(--paper-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services h2,
.contact h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.services-title {
  color: var(--blue-light);
}

.about h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--blue-deep);
  margin: 0 auto 1.25rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card > p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 5rem 0;
}

.about .service-grid {
  margin-top: 2.5rem;
}

.about .service-card h3 {
  text-align: center;
}

.about .service-card p {
  margin-bottom: 0;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--ink) 0%, #2A3550 100%);
  color: var(--paper);
}

.contact h2 {
  color: var(--paper);
}

.contact .section-lede {
  color: rgba(244, 246, 248, 0.7);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--paper);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-value {
  font-size: 1.15rem;
  font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 calc(2.5rem + var(--header-height));
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  height: 56px;
  width: auto;
  opacity: 0.85;
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }

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

  .main-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 1.25rem;
  }

  .brand-logo {
    height: 70px;
  }

  .header-inner {
    align-items: center;
  }

  .nav-cta {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    margin-bottom: 0;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }

  .services,
  .about,
  .contact {
    padding: 3.5rem 0;
  }
}
