:root {
  --ink: #10211f;
  --muted: #65726f;
  --line: #dbe4e0;
  --surface: #ffffff;
  --soft: #f5f8f2;
  --deep: #14352f;
  --green: #24924f;
  --yellow: #f3c731;
  --blue: #1f7ea8;
  --shadow: 0 18px 40px rgba(17, 37, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfcf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid rgba(219, 228, 224, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 950;
  color: var(--deep);
  white-space: nowrap;
}

.brand img {
  width: 56px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: #33423f;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  padding-block: 8px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(78vh - 72px);
  padding: clamp(64px, 10vw, 112px) clamp(20px, 5vw, 72px);
  color: #ffffff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 33, 31, 0.92) 0%, rgba(20, 53, 47, 0.74) 42%, rgba(20, 53, 47, 0.18) 100%),
    url("/assets/serrana-projetores-logo.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--blue));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.hero-product {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: end;
  min-width: 0;
  transform: translateY(clamp(74px, 12vh, 132px));
}

.hero-product img {
  width: min(500px, 100%);
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.36));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
}

.hero-actions,
.fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.primary {
  background: var(--yellow);
  color: #1d2c17;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.quick-contact {
  padding: 20px clamp(18px, 4vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
}

.quick-contact-grid a {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.quick-contact-grid svg {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.quick-contact-grid strong,
.quick-contact-grid small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick-contact-grid small {
  color: var(--muted);
}

.section {
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading .eyebrow,
.contact-copy .eyebrow {
  color: var(--green);
}

.section-heading p:not(.eyebrow),
.contact-copy p:not(.eyebrow),
.service-card p {
  color: var(--muted);
}

.services {
  background: #fbfcf8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.service-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(17, 37, 32, 0.06);
}

.service-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  color: var(--green);
}

.service-card:nth-child(2) svg {
  color: var(--blue);
}

.service-card:nth-child(3) svg {
  color: #b78e00;
}

.price-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.18fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  padding: clamp(54px, 8vw, 90px) clamp(20px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(16, 33, 31, 0.96), rgba(20, 53, 47, 0.9) 48%, rgba(36, 146, 79, 0.86)),
    #14352f;
}

.price-copy {
  max-width: 560px;
}

.price-copy .eyebrow {
  color: var(--yellow);
}

.price-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.price-list {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.price-list span {
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.price-list strong {
  color: var(--yellow);
  font-size: clamp(1.28rem, 3vw, 1.75rem);
  line-height: 1;
  white-space: nowrap;
}

.price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.secondary.dark {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
}

.price-folder {
  display: block;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.price-folder img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #0f241d;
}

.equipment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 90px) clamp(20px, 5vw, 72px);
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.equipment-media {
  min-width: 0;
}

.equipment-media img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f4f6f4;
  object-fit: cover;
}

.equipment-copy {
  max-width: 560px;
}

.equipment-copy p:not(.eyebrow) {
  color: var(--muted);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: grid;
  gap: 10px;
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.spec-list svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.spec-list strong {
  align-self: end;
  overflow-wrap: anywhere;
}

.faq-band {
  background:
    linear-gradient(180deg, rgba(245, 248, 242, 0.96), rgba(236, 244, 241, 0.96)),
    linear-gradient(90deg, rgba(36, 146, 79, 0.12), rgba(31, 126, 168, 0.1));
}

.chat-shell {
  position: relative;
  max-width: 980px;
  min-height: 620px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

#serrana-chat {
  min-height: 620px;
  height: min(72vh, 720px);
  --chat--color-primary: #24924f;
  --chat--color-primary-shade-50: #1f7f45;
  --chat--color-primary-shade-100: #176437;
  --chat--color-secondary: #1f7ea8;
  --chat--color-secondary-shade-50: #176b90;
  --chat--color-white: #ffffff;
  --chat--color-light: #f5f8f2;
  --chat--color-light-shade-50: #e7eee9;
  --chat--color-light-shade-100: #dbe4e0;
  --chat--color-medium: #bbc8c3;
  --chat--color-dark: #10211f;
  --chat--border-radius: 8px;
  --chat--window--width: 100%;
  --chat--window--height: 100%;
  --chat--header--background: #14352f;
  --chat--header--color: #ffffff;
  --chat--message--bot--background: #f5f8f2;
  --chat--message--bot--color: #10211f;
  --chat--message--user--background: #24924f;
  --chat--message--user--color: #ffffff;
  --chat--toggle--background: #24924f;
  --chat--toggle--hover--background: #1f7f45;
  --chat--toggle--active--background: #176437;
}

.chat-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  background: #ffffff;
}

.chat-fallback[hidden] {
  display: none;
}

.chat-fallback strong {
  font-size: 1.35rem;
}

.chat-fallback span {
  color: var(--muted);
}

.chat-fallback .button.secondary,
.contact .button.secondary {
  color: var(--deep);
  background: #ffffff;
  border-color: var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 34px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-row > svg {
  width: 30px;
  height: 30px;
  color: var(--green);
}

.contact-row span {
  min-width: 0;
}

.contact-row strong,
.contact-row small {
  display: block;
  overflow-wrap: anywhere;
}

.contact-row small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: #dfeae5;
  background: var(--deep);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 70vh;
    background:
      linear-gradient(180deg, rgba(16, 33, 31, 0.95) 0%, rgba(20, 53, 47, 0.78) 56%, rgba(20, 53, 47, 0.48) 100%),
      url("/assets/serrana-projetores-logo.png") center 58% / min(760px, 108vw) auto no-repeat;
  }

  .hero-product {
    justify-content: flex-start;
    align-self: auto;
    transform: none;
  }

  .hero-product img {
    width: min(460px, 96%);
  }

  .quick-contact-grid,
  .service-grid,
  .price-band,
  .equipment,
  .contact {
    grid-template-columns: 1fr;
  }

  .price-copy {
    max-width: none;
  }

  .equipment-copy {
    max-width: none;
  }

  .chat-shell,
  #serrana-chat {
    min-height: 600px;
  }
}

@media (max-width: 520px) {
  .brand {
    max-width: 100%;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 60px;
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(16, 33, 31, 0.95) 0%, rgba(20, 53, 47, 0.8) 54%, rgba(20, 53, 47, 0.5) 100%),
      url("/assets/serrana-projetores-logo.png") center 55% / 100% auto no-repeat;
  }

  .hero-actions,
  .fallback-actions,
  .price-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .chat-shell,
  #serrana-chat {
    min-height: 560px;
    height: 68vh;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .price-list li {
    grid-template-columns: 1fr;
  }
}
