:root {
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --surface-dark: #0a2342;
  --surface-dark-2: #102f57;
  --text: #17324d;
  --muted: #60748a;
  --primary: #0f6cbd;
  --primary-strong: #0a4f95;
  --accent: #ffb703;
  --accent-soft: #ffe8a3;
  --border: rgba(18, 53, 85, 0.12);
  --shadow-soft: 0 18px 40px rgba(15, 49, 82, 0.08);
  --shadow-strong: 0 24px 60px rgba(8, 26, 44, 0.18);
  --radius-sm: 1rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 108, 189, 0.1), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 183, 3, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg) 38%, #edf2f6 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(8, 29, 52, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(7, 25, 44, 0.18);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem 0;
}

.admin-logo-trigger {
  display: inline-flex;
  align-items: center;
  border-radius: 1.25rem;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.logo {
  height: 84px;
  width: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2));
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5.5rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 25, 45, 0.92), rgba(13, 59, 110, 0.82)),
    url('projeto2.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: auto auto -120px -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 183, 3, 0.12);
  filter: blur(10px);
}

.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 70px;
  width: 240px;
  height: 240px;
  border-radius: 38% 62% 51% 49% / 41% 39% 61% 59%;
  background: rgba(103, 197, 255, 0.12);
  filter: blur(4px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf6ff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ffd166 100%);
  color: #10243a;
  box-shadow: 0 16px 30px rgba(255, 183, 3, 0.28);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.78)),
    var(--surface-soft);
}

.section-title,
.section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-title {
  max-width: 620px;
}

.section-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.section-text p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.checkmarks li {
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

.checkmarks li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4ba3f5);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 8px 16px rgba(15, 108, 189, 0.22);
}

.section-image {
  position: relative;
}

.section-image::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 108, 189, 0.14), rgba(255, 183, 3, 0.18));
  z-index: 0;
}

.section-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

.servicos-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.servico-card,
.blog-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.servico-card:hover,
.blog-card:hover,
.projeto:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(10, 36, 63, 0.14);
}

.servico-card {
  padding: 1.7rem;
}

.servico-card::before,
.blog-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.servico-icon {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(15, 108, 189, 0.14), rgba(255, 183, 3, 0.2));
  font-size: 1.5rem;
}

.servico-card h3,
.blog-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.servico-card p,
.blog-card p {
  margin: 0;
  color: var(--muted);
}

.galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.projeto {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: var(--radius-lg);
  background: #d8e2ec;
  box-shadow: var(--shadow-strong);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projeto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.projeto:hover img {
  transform: scale(1.05);
}

.projeto-overlay {
  position: absolute;
  inset: auto 1.1rem 1.1rem 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(8, 28, 48, 0.2), rgba(8, 28, 48, 0.7));
  backdrop-filter: blur(8px);
}

.projeto-overlay p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem;
}

.blog-date {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.blog-link {
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.blog-link:hover,
.blog-link:focus-visible {
  color: var(--primary-strong);
}

.footer-section {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 183, 3, 0.14), transparent 28%),
    linear-gradient(135deg, #081c34 0%, #0e2f52 54%, #17426f 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.footer-contact,
.footer-form {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(4, 17, 31, 0.22);
}

.footer-contact h2,
.footer-form h2 {
  margin-top: 0;
}

.footer-contact p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.84);
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--accent-soft);
}

.redes-sociais {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.redes-sociais a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.redes-sociais a:hover,
.redes-sociais a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.redes-sociais img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.footer-form form {
  display: grid;
  gap: 0.75rem;
}

.footer-form label {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.footer-form input:focus,
.footer-form textarea:focus {
  border-color: rgba(255, 209, 102, 0.7);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.12);
}

.footer-form textarea {
  min-height: 150px;
  resize: vertical;
}

.footer-form .btn-primary {
  margin-top: 0.55rem;
  width: fit-content;
}

.footer-bottom {
  padding: 1.4rem 0 2.2rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.94rem;
}

.hidden-admin-link {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #091f37, #143f6c);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 34px rgba(4, 19, 34, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hidden-admin-link.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.obrigado-section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.obrigado-box {
  width: min(100%, 620px);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}

.obrigado-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4ba3f5);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(15, 108, 189, 0.24);
}

.obrigado-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.obrigado-box h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.obrigado-box p {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.obrigado-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Hamburger menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.95);
}

/* Blog post pages */
.post-hero {
  padding: 6rem 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(8, 28, 55, 0.88), rgba(15, 108, 189, 0.7)),
    var(--primary);
  color: #fff;
  text-align: center;
}

.post-hero h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: #fff;
}

.post-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.post-body img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-strong);
}

.post-body p {
  margin: 0 0 1.5rem;
}

.post-body ul {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.post-body a:hover,
.post-body a:focus-visible {
  color: var(--primary-strong);
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .servicos-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-image img {
    min-height: 340px;
  }
}

@media (max-width: 780px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 0 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  #main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  #main-nav.open {
    display: block;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  #main-nav a {
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .logo {
    height: 56px;
  }

  .hero {
    padding: 5rem 0 4.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .servicos-grid,
  .blog-grid,
  .galeria {
    grid-template-columns: 1fr;
  }

  .projeto {
    min-height: 300px;
  }

  .footer-contact,
  .footer-form {
    padding: 1.4rem;
  }

  .footer-form .btn-primary {
    width: 100%;
  }

  .post-hero {
    padding: 5rem 0 2rem;
  }

  .post-body {
    padding: 2rem 1.25rem 3rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(94%, var(--container));
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .checkmarks li {
    padding: 0.9rem 0.9rem 0.9rem 2.95rem;
  }

  .servico-card,
  .blog-card-body {
    padding: 1.25rem;
  }

  .obrigado-box {
    padding: 2.25rem 1.25rem;
  }
}
