/* ==========================================================================
   1. VARIÁVEIS E TOKENS DE DESIGN
   ========================================================================== */
:root {
  --green: #07520d;
  --dark-green: #004208;
  --orange: #fd7d17;
  --paper: #fcfbf8;
  --text: #161616;
  --line: #e8e7e3;
  
  --container-width: min(1348px, calc(100% - clamp(36px, 5vw, 48px)));
  --font-stack: Arial, Helvetica, sans-serif;
  --transition-fast: 0.2s ease;
}

/* ==========================================================================
   2. RESET E ESTILOS BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--text);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ==========================================================================
   3. LAYOUT COMPARTILHADO & UTILITÁRIOS
   ========================================================================== */
.container,
.section-heading,
.two-column,
.service-list,
.gallery-grid,
.contact-layout,
.section-title-row,
.values-grid,
.quote-banner,
.cta-box {
  width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   4. BOTÕES E ELÉMENTOS DE INTERAÇÃO
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  height: 54px;
  padding: 0 26px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button b {
  font-size: 25px;
  line-height: 0;
  font-weight: 400;
}

.button-primary {
  color: #fff;
  background-color: var(--dark-green);
}

.button-outline {
  color: var(--dark-green);
  border: 1px solid var(--dark-green);
  background-color: rgba(255, 255, 255, 0.54);
}

.button-small {
  height: 32px;
  padding: 0 18px;
  margin-top: 7px;
  font-size: 10px;
  gap: 12px;
}

.button-small b {
  font-size: 20px;
}

/* ==========================================================================
   5. CABEÇALHO (SITE HEADER & NAV)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 5;
  height: 115px;
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.13);
}

.header-content {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  width: 186px;
  flex: 0 0 186px;
}

.brand img {
  width: 186px;
  height: 71px;
  object-fit: contain;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  position: relative;
  color: #0c0c0c;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
}

.nav-list a.active {
  color: var(--dark-green);
  font-weight: 700;
}

.nav-list a.active::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 3px;
  left: 50%;
  bottom: -17px;
  transform: translateX(-50%);
  background-color: var(--orange);
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 157px;
  height: 42px;
  margin-left: 92px;
  background-color: var(--dark-green);
  color: #fff;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

/* ==========================================================================
   6. SEÇÃO HERO
   ========================================================================== */
.hero {
  height: 452px;
  background-image: 
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 22%, rgba(255, 255, 255, 0.62) 39%, rgba(255, 255, 255, 0) 63%),
    url('../img/modelo/hero-pomar.jpg');
  background-position: center, right center;
  background-size: auto 100%, cover;
  background-repeat: no-repeat;
}

.hero-content {
  padding-top: 55px;
}

.hero h1 {
  max-width: 615px;
  margin: 0 0 23px;
  color: var(--orange);
  font-size: 57px;
  line-height: 0.93;
  letter-spacing: -1.5px;
  font-weight: 700;
}

.hero h1 span {
  display: block;
  margin-bottom: 4px;
  color: var(--dark-green);
}

.hero p {
  margin: 0;
  color: #161616;
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 27px;
  margin-top: 38px;
}

/* ==========================================================================
   7. DIFERENCIAIS (HOME)
   ========================================================================== */
.differentials {
  min-height: 125px;
  background: linear-gradient(100deg, #004007, #075b0e 55%, #064a0b);
  color: #fff;
}

.differentials-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.13fr 1.22fr 1.12fr;
  gap: 28px;
  align-items: center;
  min-height: 125px;
}

.differential {
  display: flex;
  align-items: center;
  gap: 20px;
}

.differential svg {
  width: 48px;
  height: 57px;
  flex: 0 0 48px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.differential h2 {
  margin: 0 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  line-height: 1.2;
}

.differential p {
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
}

/* ==========================================================================
   8. SOBRE NÓS (HOME)
   ========================================================================== */
.about-home {
  padding: 48px 0 50px;
  background-color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
}

.about-copy h2 {
  margin: 0 0 11px;
  color: var(--dark-green);
  font-size: 23px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
}

.about-copy h2 span {
  color: var(--orange);
  font-weight: 700;
}

.about-copy > i {
  display: block;
  width: 49px;
  height: 1px;
  margin: 0 0 18px;
  background-color: #146028;
}

.about-copy p {
  max-width: 374px;
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.55;
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-photos img {
  width: 100%;
  height: 234px;
  border-radius: 10px;
  object-fit: cover;
}

/* ==========================================================================
   9. PÁGINAS INTERNAS (HERO & ESTRUTURA GLOBAL)
   ========================================================================== */
.page-hero {
  padding: 83px 0;
  background: 
    linear-gradient(100deg, rgba(0, 66, 8, 0.96), rgba(4, 95, 14, 0.76)),
    url('../img/modelo/hero-pomar.jpg') center/cover no-repeat;
  color: #fff;
}

.page-hero h1 {
  max-width: 700px;
  margin: 0 0 17px;
  font-size: 48px;
  line-height: 1.04;
}

.page-hero p {
  max-width: 630px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.section {
  padding: 70px 0;
}

.section-dark,
.values-section {
  background-color: #f3f5ed;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.two-column h2,
.section-title-row h2,
.contact-intro h2 {
  margin: 0;
  color: var(--dark-green);
  font-size: 34px;
  line-height: 1.13;
}

.two-column p {
  margin: 0 0 15px;
  font-size: 16px;
}

.section-title-row {
  margin-bottom: 34px;
}

/* ==========================================================================
   10. VALORES & COMPONENTES INTERNOS
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.values-grid article {
  padding: 24px;
  border-top: 3px solid var(--orange);
  background-color: #fff;
}

.values-grid span,
.service-index {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.values-grid h3 {
  margin: 10px 0;
  color: var(--dark-green);
  font-size: 22px;
}

.values-grid p {
  margin: 0;
  font-size: 14px;
}

.quote-banner {
  padding: 48px;
  background-color: var(--dark-green);
  color: #fff;
  text-align: center;
}

.quote-banner p {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.25;
}

.quote-banner .text-link {
  color: var(--orange);
  font-weight: bold;
}

/* ==========================================================================
   11. SERVIÇOS & CTA
   ========================================================================== */
.service-list {
  display: grid;
  gap: 1px;
  background-color: #e3e3e3;
}

.service-list article {
  display: grid;
  grid-template-columns: 60px 1fr 210px;
  align-items: center;
  gap: 25px;
  padding: 34px;
  background-color: #fff;
}

.service-list h2 {
  margin: 0 0 8px;
  color: var(--dark-green);
  font-size: 30px;
}

.service-list p {
  max-width: 620px;
  margin: 0;
}

.service-list img {
  width: 190px;
  height: 116px;
  border-radius: 7px;
  object-fit: cover;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.cta-box h2 {
  margin: 0;
  color: var(--dark-green);
}

.section-dark .cta-box h2 {
  color: #fff;
}

/* ==========================================================================
   12. GALERIA & LIGHTBOX
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-item span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  background-color: var(--dark-green);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover span {
  opacity: 1;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 35px;
  background-color: rgba(0, 0, 0, 0.84);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  right: 20px;
  top: 15px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
}

/* ==========================================================================
   13. FORMULÁRIOS DE CONTATO
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
}

.contact-intro p {
  font-size: 16px;
}

.contact-note {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.contact-form-wrap {
  padding: 35px;
  background-color: #f4f4ef;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
  color: var(--dark-green);
  font-size: 13px;
  font-weight: bold;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #969696;
  font: 16px var(--font-stack);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--dark-green);
}

.alert {
  padding: 12px;
  margin-bottom: 15px;
  background-color: #dfeeda;
  color: var(--dark-green);
}

.alert-danger {
  background-color: #fae4d9;
  color: #7e2e0e;
}

/* ==========================================================================
   14. RODAPÉ (SITE FOOTER)
   ========================================================================== */
.site-footer {
  padding: 45px 0 18px;
  background-color: #003f08;
  color: #fff;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 35px;
}

.footer-content img {
  width: 155px;
  height: 60px;
  border-radius: 2px;
  background-color: #fff;
  object-fit: contain;
}

.footer-content p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.footer-content a {
  margin-left: auto;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

/* ==========================================================================
   15. MEDIA QUERIES - TABLETS E TELAS MÉDIAS (MAX: 1000PX)
   ========================================================================== */
@media (max-width: 1000px) {
  .nav-list {
    gap: 23px;
  }

  .contact-button {
    margin-left: 35px;
  }

  .differentials-grid {
    gap: 14px;
  }

  .differential {
    gap: 12px;
  }

  .differential p {
    font-size: 11px;
  }

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

  .about-photos {
    gap: 12px;
  }

  .about-photos img {
    height: 215px;
  }
}

/* ==========================================================================
   16. MEDIA QUERIES - DISPOSITIVOS MÓVEIS (MAX: 760PX)
   ========================================================================== */
@media (max-width: 760px) {
  .site-header {
    height: 77px;
  }

  .brand {
    width: 141px;
    flex-basis: 141px;
  }

  .brand img {
    width: 141px;
    height: 57px;
  }

  .site-nav,
  .contact-button {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 8px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 26px;
    height: 2px;
    background-color: var(--dark-green);
  }

  .mobile-nav.open {
    display: block;
    background-color: #fff;
    border-top: 1px solid #eee;
  }

  .mobile-nav .nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 0;
  }

  .mobile-nav .nav-list a.active::after {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 590px;
    background-position: 58% center, right center;
  }

  .hero-content {
    padding: 57px 0;
  }

  .hero h1 {
    max-width: 420px;
    font-size: 42px;
    letter-spacing: -1px;
    line-height: 0.98;
  }

  .hero p {
    max-width: 355px;
    font-size: 15px;
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 30px;
  }

  .button {
    height: 47px;
    font-size: 11px;
  }

  .differentials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 14px;
    min-height: 0;
    padding: 27px 0;
  }

  .differential svg {
    width: 37px;
    height: 46px;
    flex-basis: 37px;
  }

  .differential h2 {
    font-size: 11px;
  }

  .differential p {
    font-size: 10px;
  }

  .about-home {
    padding: 40px 0;
  }

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

  .about-copy p {
    max-width: none;
  }

  .about-photos {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .about-photos img {
    height: 230px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-content a {
    margin: 0;
  }

  .page-hero {
    padding: 62px 0;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .values-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .service-list article {
    grid-template-columns: 38px 1fr;
    padding: 26px 20px;
  }

  .service-list img {
    display: none;
  }

  .service-list h2 {
    font-size: 25px;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}