:root {
  --primary: #1f18c0;
  --accent: #0f0d6a;
  --muted: #6b7280;
  --bg: #ffffff;
  --card: #ffffff;
  --radius: 10px;
  --container: 1140px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #0b0b0b;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(15, 15, 15, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  height: 85px;
}

nav a {
  margin-left: 26px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  transition: 100ms;
}

nav a:hover {
  padding: 9px;
  color: var(--bg);
  background-color: var(--primary);
  border-radius: 8px;
  transition: 100ms;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta {
  margin-left: 18px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
}

/* ==================== HERO ==================== */
#hero {
  display: flex;
  align-items: center;
  min-height: 62vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 40px;
}

.hero-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.03;
  color: var(--accent);
}

.hero-sub {
  max-width: 48ch;
  margin-top: 12px;
  color: var(--muted);
}

.hero-card {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(18, 18, 20, 0.06);
}

.hero-cta {
  display: inline-block;
  margin-top: 16px;
}

.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(8, 6, 40, 0.08);
}

/* ==================== SERVICES ==================== */
#servicos {
  padding: 64px 0;
}

.section-title {
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--accent);
}

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

.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(12, 13, 20, 0.06);
  transition: 100ms;
}

.service-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-link:hover .service {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(12, 13, 20, 0.12);
  transition: 200ms;
}

.service img {
  width: 100%;
  height: 160px;
  margin-bottom: 12px;
  object-fit: cover;
  border-radius: 8px;
}

.service h3 {
  margin: 0;
  font-size: 18px;
  color: var(--accent);
}

.service p {
  margin-top: 8px;
  color: var(--muted);
}

/* ==================== ABOUT ==================== */
#sobre {
  padding: 64px 0;
}

.about {
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  gap: 36px;
}

.about p {
  line-height: 1.6;
  color: var(--muted);
}

.about-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(8, 6, 40, 0.06);
}

/* ==================== CONTACT ==================== */
#contactos {
  padding: 64px 0;
  background: #fbfbff;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border: 1px solid #e6e6e9;
  border-radius: 8px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.btn {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 100ms;
}

.btn:hover {
  color: var(--primary);
  background-color: var(--bg);
  border: 2px solid var(--primary);
  transition: 100ms;
}

.contact-info {
  padding: 16px;
  background: transparent;
  border-radius: 8px;
}

.small {
  font-size: 14px;
  color: var(--muted);
}

/* ==================== FOOTER ==================== */
footer {
  padding: 28px 0;
  text-align: center;
  color: #6b6b7a;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* ==================== UTILITY ==================== */
.muted {
  color: var(--muted);
}

a {
  text-decoration: none;
}

.categoria-header h1,
.product-card h4 {
  margin: 0;
  font-size: 18px;
  color: var(--accent);
}

.categoria-header p,
.product-card p {
  color: var(--muted);
}

.categoria-header .lead {
  max-width: 70ch;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card h4 {
  min-height: 50px;
}

.product-card p.text-muted {
  flex-grow: 1;
}

.product-card .btn {
  margin-top: auto;
}

.product-img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  background: #f7f7f7;
  border-radius: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .hero-grid,
  .about,
  .contact-grid {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: 1fr 360px;
  }

  .about {
    grid-template-columns: 1fr 330px;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 16px;
  }

  .hero-grid,
  .contact-grid,
  .about {
    grid-template-columns: 1fr;
  }

  #hero {
    min-height: auto;
    padding: 22px 0 12px;
  }

  #sobre,
  #servicos,
  #contactos {
    padding: 38px 0;
  }

  .section-title {
    margin-bottom: 14px;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  nav a {
    display: inline-block;
    margin-left: 0;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 6px;
  }

  .cta {
    display: inline-block;
    margin-left: 0;
    padding: 9px 14px;
    font-size: 13px;
  }

  .logo {
    height: 52px;
  }

  .hero-card {
    margin-top: 14px;
    padding: 16px;
  }

  .hero-image {
    height: 250px;
  }

  .about-image {
    height: 220px;
  }

  .contact-info {
    padding: 12px 0;
  }

  .product-img {
    max-height: 320px;
  }
}

@media (max-width: 700px) {
  .nav > div:first-child {
    width: 100%;
    gap: 10px !important;
  }

  .nav > div:first-child small {
    display: block;
    line-height: 1.2 !important;
  }

  .nav-right {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
  }

  nav a {
    font-size: 13px;
  }

  .cta {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px;
    padding: 10px 16px;
    text-align: center;
  }

  .grid {
    gap: 14px;
  }

  .service {
    padding: 14px;
  }

  .service img {
    height: 150px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 14px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.1;
  }

  .hero-sub,
  .about p,
  .categoria-header .lead {
    font-size: 15px;
  }

  .hero-image {
    height: 220px;
  }

  input,
  textarea {
    padding: 12px;
  }

  .btn {
    padding: 11px 14px;
    font-size: 13px;
  }
}
