/* ==========================================================================
   CSS Variables (Design System: Luxo Industrial)
   ========================================================================== */
:root {
  /* Colors */
  --color-dark: #1A1A1A;
  --color-black: #000000;
  --color-gray: #E0E0E0;
  --color-gray-dark: #333333;
  --color-light: #FFFFFF;
  --color-cream: #FAF9E6;
  --color-yellow: #FFCE00;
  --color-green: #25D366;
  /* WhatsApp Green */

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Sizes */
  --width-25: 25%;
  --width-50: 50%;
  --width-100: 100%;
}


/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.width-25 {
  width: var(--width-25) !important;
}

.width-50 {
  width: var(--width-50) !important;
}

.width-100 {
  width: var(--width-100) !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.6;
  background-color: var(--color-light);
  overflow-x: hidden;
  overflow-wrap: break-word;
  margin: 0;
}

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

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

.oculto {
  display: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2rem);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.125rem;
  color: var(--color-gray-dark);
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

.text-center {
  text-align: center;
}

.text-center p {
  margin-inline: auto;
}

.items-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mt-4 {
  margin-top: var(--space-md);
}

/* ==========================================================================
   Layout & Sections
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.narrow-container {
  max-width: var(--container-narrow);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

section,
footer {
  padding: var(--space-xl) 0;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.section-dark p {
  color: #CCCCCC;
}

.section-light {
  background-color: var(--color-light);
}

.section-cream {
  background-color: var(--color-cream);
}

.section-header {
  margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  max-width: 100%;
  white-space: normal;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border-radius: 50px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-green);
  color: var(--color-light);
}

.btn-primary:hover {
  background-color: #1EAB53;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}

.btn-outline:hover {
  background-color: var(--color-dark);
  color: var(--color-yellow);
}

/* Logo */
.logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-light);
  /* fundo do logo-container branco */
  padding: 1.25rem var(--space-md);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo img {
  max-height: 45px;
  width: auto;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 40%;
  margin-left: 40px;
}

.hero-content h1 {
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.hero-content p {
  line-height: 1.25;
}

.hero p {
  font-size: 1.25rem;
  color: #DDDDDD;
}

.hero-content .beneficios {
  padding: 16px 8px;
  border: 1px solid var(--color-light);
  font-family: var(--font-body);
  font-size: 0.65rem;
}

.hero-content strong {
  color: var(--color-yellow);
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 2;
}

@media (max-width:767px) {
  .hero-content {
    margin-bottom: 40px;
  }

  .hero-image {
    position: relative;
    z-index: 3;
    max-width: 100%;
    margin-left: 0;
  }

  .hero::before {
    display: none;
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-dark) 80%, transparent 100%);
  z-index: 0;
}

/* Features Cards */
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-lg);
}

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-light);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  border-bottom: 4px solid var(--color-yellow);
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.card-content {
  padding: var(--space-md);
  background-color: var(--color-light);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--color-dark);
}

/* Architecture B2B Section */
.architecture-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
}

/*
.architecture-layout .image-content img {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.architecture-layout .image-content:hover img {
  filter: grayscale(0%);
}
*/
/* Specifications Table */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-gray);
}

table th {
  font-family: var(--font-heading);
  color: var(--color-dark);
  width: 30%;
}

/* Portfolio Gallery */
.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 2px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.location-tag {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background-color: var(--color-yellow);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.portfolio .container {
  position: relative;
}

.serra-bg {
  position: absolute;
  bottom: -20px;
  right: -5%;
  width: 40%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(100%) invert(1);
}

/* FAQ Accordion */
.accordion {
  border-top: 1px solid var(--color-gray);
}

.accordion-item {
  border-bottom: 1px solid var(--color-gray);
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding-bottom: var(--space-md);
}

.icon-plus {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .icon-plus {
  transform: rotate(45deg);
  color: var(--color-yellow);
}

/* Footer Legal */
.legal {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: center;
}

/* ==========================================================================
   Animations & Interactivity
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Media Queries (Mobile Adjustments)
   ========================================================================== */
@media (max-width: 900px) {
  .logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-light);
    /* fundo do logo-container branco */
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .logo img {
    max-height: 30px;
    /* logo menor */
    width: auto;
  }

  .hero {
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero::before {
    width: 100%;
    background: linear-gradient(0deg, var(--color-dark) 50%, rgba(26, 26, 26, 0.6) 100%);
  }

  .hero-image {
    width: 100%;
    height: 60vh;
    z-index: 0;
  }

  .hero-image img {
    filter: brightness(0.6);
  }

  .hero-content {
    margin-left: 0;
    max-width: 100%;
  }

  h1 {
    margin-bottom: 1rem;
  }

  .architecture-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    height: 300px;
  }

  table th,
  table td {
    display: block;
    width: 100%;
  }

  table th {
    border-bottom: none;
    padding-bottom: 0;
  }

  table td {
    padding-top: 0.5rem;
  }
}

.rule {
  width: 40%;
  height: 2px;
  background-color: var(--color-yellow);
  margin-bottom: 40px;
}

.portfolio .rule {

  margin-inline: auto;
}