/* =========================================================
   SJC Projetos e Construções
   STYLE.CSS profissional, minimalista e responsivo
   Estrutura esperada:
   /index.html
   /css/style.css
   /images/logo.png
========================================================= */

:root {
  --color-primary: #173748;
  --color-primary-2: #23556c;
  --color-accent: #0c6fa8;
  --color-whatsapp: #25d366;

  --color-bg: #f6f8f9;
  --color-surface: #ffffff;
  --color-surface-2: #edf3f6;

  --color-text: #15232b;
  --color-muted: #62717b;
  --color-line: rgba(21, 35, 43, .12);
  --color-white: #ffffff;

  --shadow-soft: 0 24px 70px rgba(21, 35, 43, .10);
  --shadow-small: 0 12px 34px rgba(21, 35, 43, .08);

  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;

  --container: 1180px;
  --header-height: 82px;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  color: var(--color-white);
  background: var(--color-primary);
}

/* Utilitários */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-primary);
  transform: translateY(-140%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .82);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tag::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}

.tag--dark {
  color: var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-primary);
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: var(--shadow-small);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--color-primary-2);
  box-shadow: 0 18px 42px rgba(21, 35, 43, .15);
}

.btn--outline {
  color: var(--color-white);
  background: transparent;
  border-color: rgba(255, 255, 255, .32);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .52);
}

.btn--light {
  color: var(--color-primary);
  background: var(--color-white);
}

.btn--light:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .38);
}

.btn--header {
  min-height: 44px;
  padding-inline: 18px;
  font-size: .92rem;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(246, 248, 249, .84);
  border-bottom: 1px solid rgba(21, 35, 43, .08);
  backdrop-filter: blur(18px);
}

.header__inner {
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 68px;
  height: 68px;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 18px;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--color-primary);
  font-size: .95rem;
  font-weight: 750;
}

.nav a {
  position: relative;
  padding: 10px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  margin: auto;
  border-radius: 999px;
  background: var(--color-accent);
  transition: width .2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--color-primary);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 64px) 0 80px;
  color: var(--color-white);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .14), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(12, 111, 168, .26), transparent 30%),
    linear-gradient(135deg, #0f2835 0%, #173748 48%, #23556c 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -120px -260px auto;
  width: 620px;
  height: 620px;
  border: 90px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 82%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) 390px;
  gap: 70px;
  align-items: center;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.65rem);
  line-height: .89;
  letter-spacing: -.075em;
}

.hero p {
  max-width: 690px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__panel {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.hero__panel img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  margin-bottom: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
}

.hero__panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.hero__panel span {
  color: rgba(255, 255, 255, .68);
  font-size: .94rem;
}

.hero__panel ul {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero__panel li {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}

.hero__panel li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
}

/* Seções gerais */
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 76px;
  align-items: start;
}

.section__heading {
  max-width: 760px;
}

.section__heading--center {
  margin: 0 auto 46px;
  text-align: center;
}

.section__heading--center .tag {
  margin-inline: auto;
}

.section h2,
.quote-card h2,
.contact h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(2.1rem, 4.2vw, 4.05rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.section__heading p {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--color-muted);
}

.text-block {
  color: var(--color-muted);
  font-size: 1.08rem;
}

.text-block p {
  margin: 0;
}

.text-block p + p {
  margin-top: 20px;
}

/* Serviços */
.services {
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .74) 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 14px 42px rgba(21, 35, 43, .045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 111, 168, .22);
  box-shadow: var(--shadow-small);
}

.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  border-radius: 18px;
  color: var(--color-accent);
  background: rgba(12, 111, 168, .08);
  font-size: .86rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
}

/* Chamada */
.quote-section {
  padding: 0 0 110px;
}

.quote-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 58px;
  border-radius: var(--radius-lg);
  color: var(--color-white);
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(135deg, #173748 0%, #23556c 100%);
  box-shadow: var(--shadow-soft);
}

.quote-card::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -110px;
  width: 290px;
  height: 290px;
  border: 52px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}

.quote-card h2 {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--color-white);
}

.quote-card .btn {
  position: relative;
  z-index: 1;
}

/* Processo */
.process-list {
  display: grid;
  gap: 14px;
  margin-top: 46px;
}

.process-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.process-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--color-white);
  background: var(--color-primary);
  font-weight: 900;
}

.process-item h3 {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 1.18rem;
  letter-spacing: -.02em;
}

.process-item p {
  max-width: 820px;
  margin: 0;
  color: var(--color-muted);
}

/* Contato */
.contact {
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 24px;
  align-items: stretch;
}

.contact__content,
.contact-card {
  padding: 46px;
  border-radius: var(--radius-lg);
}

.contact__content {
  background:
    linear-gradient(135deg, rgba(12, 111, 168, .07), rgba(23, 55, 72, .03)),
    var(--color-surface-2);
}

.contact__content p {
  max-width: 650px;
  margin: 20px 0 32px;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.contact-card {
  color: var(--color-white);
  background: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  margin: 0 0 28px;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.contact-card dl {
  display: grid;
  gap: 20px;
  margin: 0;
}

.contact-card div {
  min-width: 0;
}

.contact-card dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .56);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 0;
  color: rgba(255, 255, 255, .86);
}

.contact-card a {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .28);
  text-underline-offset: 4px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: background .2s ease, border-color .2s ease;
}

.contact-links a:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .34);
}

/* Footer */
.footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, .68);
  background: #102833;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
}

.footer p {
  margin: 0;
  text-align: center;
}

.footer a {
  color: var(--color-white);
  font-weight: 800;
}

/* WhatsApp fixo */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-whatsapp);
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(37, 211, 102, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(37, 211, 102, .34);
}

/* Animação suave */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 1024px) {
  :root {
    --header-height: 76px;
  }

  .header__inner {
    grid-template-columns: auto auto 1fr;
  }

  .btn--header {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    order: 3;
  }

  .nav {
    position: absolute;
    top: calc(var(--header-height) + 10px);
    left: 20px;
    right: 20px;
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(18px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .nav a:hover {
    background: rgba(12, 111, 168, .07);
  }

  .nav a::after {
    display: none;
  }

  .hero__grid,
  .split,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero__panel {
    max-width: 540px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .section {
    padding: 78px 0;
  }

  .brand,
  .brand img {
    width: 60px;
    height: 60px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 50px) 0 70px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.7rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn,
  .contact__content .btn,
  .quote-card .btn {
    width: 100%;
  }

  .hero__panel {
    padding: 26px;
    border-radius: 26px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .quote-section {
    padding-bottom: 78px;
  }

  .quote-card,
  .contact__content,
  .contact-card {
    padding: 30px;
    border-radius: 26px;
  }

  .process-item {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .floating-whatsapp {
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.footer-sjc {
  padding: 0;
  color: rgba(255, 255, 255, .76);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .08), transparent 32%),
    linear-gradient(135deg, #0f2835 0%, #173748 52%, #102833 100%);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-sjc__top {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr 1.1fr;
  gap: 38px;
  padding: 68px 0 44px;
}

.footer-sjc__brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
}

.footer-sjc__description {
  max-width: 360px;
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, .70);
  font-size: .98rem;
  line-height: 1.7;
}

.footer-sjc__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: #25d366;
  font-size: .92rem;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .20);
  transition: transform .2s ease, box-shadow .2s ease;
}

.footer-sjc__whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(37, 211, 102, .28);
}

.footer-sjc__column h3 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-sjc__column ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-sjc__column li,
.footer-sjc__column a {
  color: rgba(255, 255, 255, .68);
  font-size: .95rem;
  line-height: 1.55;
}

.footer-sjc__column a {
  transition: color .2s ease, padding-left .2s ease;
}

.footer-sjc__column a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-sjc__contact li {
  display: grid;
  gap: 4px;
}

.footer-sjc__contact span {
  color: rgba(255, 255, 255, .42);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-sjc__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-sjc__social a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #ffffff;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-sjc__social a:hover {
  padding-left: 13px;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .26);
}

.footer-sjc__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.footer-sjc__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: .9rem;
}

.footer-sjc__credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 12px 7px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, .055);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.footer-sjc__credit:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .22);
}

.footer-sjc__credit span {
  color: rgba(255, 255, 255, .48);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-sjc__credit img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-sjc__credit strong {
  color: #ffffff;
  font-size: .92rem;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .footer-sjc__top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 680px) {
  .footer-sjc__top {
    grid-template-columns: 1fr;
    padding: 52px 0 32px;
  }

  .footer-sjc__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-sjc__credit {
    width: 100%;
    justify-content: center;
  }
}
