/* ========================================================================== 
   Critical CSS - Total Soluções Prediais
   Conteúdo mínimo para a primeira dobra e prevenção de layout shift.
   ========================================================================== */

:root {
  --color-navy-950: #071426;
  --color-navy-900: #0b1d35;
  --color-navy-800: #132b4d;
  --color-gold-500: #cdaa4b;
  --color-group-green: #a9cd4a;
  --color-group-green-dark: #648316;
  --color-group-gray: #8a898a;
  --color-white: #ffffff;
  --color-off-white: #f7f5ef;
  --color-pool-100: #ddf8fa;
  --color-pool-300: #87dbe2;
  --color-text: #172235;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1180px;
  --header-height: 86px;
  --shadow-header: 0 10px 30px rgb(7 20 38 / 0.10);
  --section-heading-space: clamp(2.75rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  color: var(--color-white);
  background: var(--color-navy-950);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: var(--header-height);
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid rgb(7 20 38 / 0.08);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: clamp(0.85rem, 1.4vw, 1.5rem);
}

.brand {
  display: inline-flex;
  min-width: 220px;
  flex-direction: column;
  color: var(--color-navy-950);
  text-decoration: none;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.055em;
}

.brand__tagline {
  margin-top: 0.35rem;
  color: var(--color-group-gray);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1.35rem);
  margin-left: auto;
}

.site-nav a {
  color: var(--color-navy-900);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-decoration: none;
}

.menu-toggle {
  display: none;
}

.header-cta {
  flex: 0 0 auto;
  padding-inline: 1rem;
  font-size: 0.76rem;
  white-space: nowrap;
}

.breadcrumb--concealed {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  color: transparent;
  background: transparent;
  white-space: nowrap;
}

.breadcrumb--concealed .container {
  padding: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
  color: var(--color-navy-950);
  background:
    radial-gradient(circle at 86% 18%, rgb(255 255 255 / 0.72), transparent 28%),
    radial-gradient(circle at 12% 88%, rgb(169 205 74 / 0.18), transparent 30%),
    linear-gradient(135deg, var(--color-pool-100), var(--color-pool-300));
}

.hero::after {
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgb(7 20 38 / 0.14);
  border-radius: 50%;
  content: "";
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.hero h1 {
  max-width: 760px;
  margin: 0.75rem 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 700px;
  margin: 0;
  color: rgb(7 20 38 / 0.78);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--color-group-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero .eyebrow {
  color: var(--color-group-green-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button--primary {
  color: var(--color-navy-950);
  background: var(--color-group-green);
  box-shadow: 0 10px 24px rgb(169 205 74 / 0.2);
}

.button--secondary {
  border-color: rgb(7 20 38 / 0.14);
  color: var(--color-navy-950);
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 12px 28px rgb(7 20 38 / 0.16);
}

.button--large {
  min-height: 56px;
  padding-inline: 1.4rem;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.hero__visual img {
  width: 100%;
  height: auto;
}

@media (min-width: 641px) {
  .desktop-nowrap {
    white-space: nowrap;
  }
}

@media (max-width: 1040px) {
  .header-cta {
    display: none;
  }

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

  .hero__visual {
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 840px) {
  :root {
    --header-height: 72px;
  }

  .site-header__inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgb(7 20 38 / 0.12);
    border-radius: 0.55rem;
    background: var(--color-white);
  }

  .menu-toggle__line {
    width: 22px;
    height: 2px;
    background: var(--color-navy-950);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.65rem 1rem 1rem;
    background: var(--color-white);
    box-shadow: var(--shadow-header);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid rgb(7 20 38 / 0.08);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .brand__tagline {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero__actions .button {
    width: 100%;
  }
}
