:root {
  --gold: #c79b41;
  --gold-2: #b9872e;
  --gold-light: #e7d2a3;
  --dark: #111111;
  --cream: #f8f5ef;
  --white: #ffffff;
  --text: #4f463c;
  --border: rgba(199, 155, 65, 0.28);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 24px 0;
}

.nav-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-block;
}

.logo img {
  width: 185px;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-top: 28px;
}

.nav a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  position: relative;
  transition: 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-light);
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 38px;
  height: 2px;
  background: var(--gold);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(18, 14, 8, 0.94) 0%,
      rgba(69, 43, 2, 0.84) 42%,
      rgba(128, 85, 13, 0.50) 100%
    ),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1800&q=90")
    center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 77% 45%,
      rgba(240, 188, 88, 0.18),
      transparent 30%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 155px;
}

.hero-text {
  max-width: 660px;
  color: var(--white);
}

.hero-text h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5vw, 5.15rem);
  line-height: 0.98;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-line {
  width: 90px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 26px;
}

.hero-text p {
  font-size: 1.18rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 15px 28px;
  border-radius: 9px;

  font-weight: 500;
  min-width: 205px;

  transition: 0.3s ease;
}

.btn-gold {
  background: linear-gradient(135deg, #d4ad60, var(--gold-2));
  color: var(--white);

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 10px 25px rgba(125, 84, 18, 0.24);
}

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

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-wave {
  position: absolute;

  left: -10%;
  right: -10%;
  bottom: -110px;

  height: 220px;

  background: var(--cream);

  border-radius:
    50% 50% 0 0 /
    100% 100% 0 0;

  z-index: 1;
}


/* =========================================================
   ÁREAS DE ATUAÇÃO
   ========================================================= */

.areas {
  background: var(--cream);
  padding: 90px 0 72px;
  position: relative;
  z-index: 2;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}

.section-heading.center {
  justify-content: center;
}

.section-heading h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);

  color: #9b7428;

  font-weight: 600;
  text-transform: uppercase;

  letter-spacing: 0.04em;
}

.section-line {
  width: 160px;
  height: 1px;

  background:
    linear-gradient(
      to right,
      transparent,
      var(--gold),
      transparent
    );
}

.section-icon {
  text-align: center;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 34px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.area-card {
  background: rgba(255, 255, 255, 0.62);

  border: 1px solid var(--border);
  border-radius: 12px;

  padding: 28px 26px;

  display: flex;
  align-items: center;
  gap: 18px;

  min-height: 135px;

 position: relative;
  overflow: visible;
  cursor: pointer;

  transition: 0.3s ease;
}

.area-card:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow);

  border-color:
    rgba(199, 155, 65, 0.52);
}

.area-icon {
  color: var(--gold);
  font-size: 2rem;
  min-width: 52px;
}

.area-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;

  line-height: 1.05;

  font-weight: 500;

  color: #6d5220;
}

/* =========================================================
   TEXTO SUSPENSO DOS CARDS
   ========================================================= */

.area-popup {
  display: none;

  position: absolute;
  top: calc(100% + 12px);
  left: 50%;

  transform: translateX(-50%);

  width: 360px;
  max-width: 90vw;

  padding: 24px;

  background: linear-gradient(
    145deg,
    #3f2707,
    #79510d
  );

  border: 1px solid var(--gold);
  border-radius: 12px;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30);

  z-index: 999;
}

/* SÓ APARECE QUANDO PASSAR O MOUSE */
.area-card:hover .area-popup {
  display: block;
}

/* TÍTULO DO TEXTO SUSPENSO */
.area-popup h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;

  color: #f0cf89;

  margin: 0 0 10px 0;
}

/* TEXTO */
.area-popup p {
  font-family: "Inter", sans-serif;

  font-size: 0.95rem;
  line-height: 1.6;

  color: #ffffff;

  margin: 0;
}

/* EVITA QUE A CAIXA SEJA CORTADA */
.cards-grid {
  overflow: visible;
}

.area-card:hover {
  z-index: 100;
}


/* =========================================================
   QUEM SOMOS — AJUSTADO PARA FICAR COMO O ESBOÇO
   ========================================================= */

.about {
  background:
    linear-gradient(
      90deg,
      #4a2d05 0%,
      #76500f 48%,
      #8b5d12 100%
    );

  color: #fff;
  padding: 0;
}

.about-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(430px, 0.92fr);

  align-items: stretch;

  min-height: 430px;
}

.about-text {
  padding:
    54px
    46px
    54px
    0;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h2 {
  font-family: "Cormorant Garamond", serif;

  font-size:
    clamp(2.9rem, 4vw, 4rem);

  font-weight: 500;
  text-transform: uppercase;

  line-height: 1;

  margin-bottom: 13px;

  color: #fff;
}

.about-line {
  width: 140px;
  height: 2px;

  background: var(--gold);

  margin-bottom: 27px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;

  color:
    rgba(255, 255, 255, 0.95);

  margin-bottom: 17px;

  max-width: 620px;
}

.about-text strong {
  color: #f1cb76;
  font-weight: 600;
}

/*
  AQUI ESTÁ A CORREÇÃO PRINCIPAL:
  a imagem não é mais um <img> solto.
  Ela vira a própria coluna da direita.
*/
.about-visual {
  min-height: 430px;

  background-image: url("assets/quem-somos.png");
  background-repeat: no-repeat;

  /* Faz a imagem preencher a coluna sem deformar */
  background-size: contain;

  /* Ajusta o enquadramento da imagem */
  background-position: center center;

 background-color: #79510d;

  position: relative;
  overflow: hidden;
}

/* Faz uma transição suave entre o texto e a imagem */

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    rgba(74, 45, 5, 0.35) 0%,
    rgba(74, 45, 5, 0.10) 15%,
    transparent 30%
  );
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background:
    linear-gradient(
      90deg,
      #2a1a06,
      #7f570d,
      #2a1a06
    );

  color: var(--white);
}

.footer-top {
  display: grid;

  grid-template-columns:
    0.9fr
    1.2fr
    1fr;

  gap: 40px;

  padding:
    42px
    0
    28px;

  align-items: center;

  border-top:
    1px solid
    rgba(255, 219, 156, 0.22);
}

.footer-brand img {
  width: 180px;
  height: auto;
}

.footer-contact h3 {
  font-family: "Cormorant Garamond", serif;

  font-size: 2rem;

  margin-bottom: 14px;

  color: #f0d79f;

  font-weight: 500;
}

.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 14px;

  color:
    rgba(255, 255, 255, 0.92);

  font-size: 0.98rem;
}

.footer-contact i {
  color: var(--gold-light);

  margin-right: 10px;

  width: 18px;
}

.footer-quote {
  border-left:
    1px solid
    rgba(255, 219, 156, 0.25);

  padding-left: 34px;
}

.footer-quote p {
  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 2rem;

  line-height: 1.15;

  color: #f6e3b4;
}

.footer-bottom {
  border-top:
    1px solid
    rgba(255, 219, 156, 0.18);

  padding:
    18px
    0
    24px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.footer-bottom p {
  color:
    rgba(255, 255, 255, 0.85);

  font-size: 0.92rem;
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  width: 42px;
  height: 42px;

  border-radius: 50%;

  border:
    1px solid
    rgba(255, 227, 180, 0.35);

  display: inline-flex;

  align-items: center;
  justify-content: center;

  color: #f5ddb0;

  transition: 0.3s ease;
}

.social a:hover {
  background:
    rgba(255, 255, 255, 0.08);

  transform:
    translateY(-2px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

  .cards-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-text {
    padding:
      50px
      0
      32px;
  }

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

  .about-visual {
  min-height: 360px;
  background-position: center center;
}

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-quote {
    border-left: 0;
    padding-left: 0;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .header {
    position: relative;

    background:
      rgba(17, 17, 17, 0.95);
  }

  .nav-wrapper {
    flex-direction: column;

    align-items: center;

    gap: 18px;
  }

  .logo img {
    width: 150px;
  }

  .nav {
    flex-wrap: wrap;

    justify-content: center;

    gap: 18px;

    padding-top: 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 80px;
    padding-bottom: 130px;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

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

  .area-card {
    min-height: 120px;
  }

  .section-heading {
    flex-direction: column;
    gap: 8px;
  }

  .section-line {
    width: 90px;
  }

  .about-text h2 {
    font-size: 3rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-visual {
    min-height: 300px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

}


@media (max-width: 540px) {

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .about-visual {
    min-height: 240px;
  }

  .footer-quote p {
    font-size: 1.55rem;
  }

}


/* =========================================================
   AJUSTE GERARDI — LOGO CENTRALIZADO NO HERO
   ========================================================= */

/* Remove o logo pequeno do canto esquerdo */
.header .logo {
  display: none;
}

/* Centraliza o menu no topo */
.nav-wrapper {
  justify-content: center;
  align-items: center;
}

.nav {
  padding-top: 0;
  justify-content: center;
}

/* Hero com apenas o logo centralizado */
.hero {
  background:
    linear-gradient(
      90deg,
      rgba(18, 14, 8, 0.90) 0%,
      rgba(69, 43, 2, 0.82) 50%,
      rgba(128, 85, 13, 0.58) 100%
    ),
    url("assets/logo-gerardi.png")
    center center / 520px auto no-repeat;
}

/* Esconde o texto e a linha do hero, deixando apenas o logo */
.hero-text {
  display: none;
}

/* Mantém o hero com boa altura e o logo visualmente centralizado */
.hero-content {
  padding-top: 0;
  padding-bottom: 0;
}

/* Ajuste para tablet */
@media (max-width: 1024px) {
  .hero {
    background-size: 430px auto;
  }
}

/* Ajuste para celular */
@media (max-width: 768px) {
  .header {
    position: absolute;
    background: transparent;
  }

  .nav-wrapper {
    flex-direction: row;
    justify-content: center;
  }

  .nav {
    justify-content: center;
    gap: 16px;
  }

  .hero {
    min-height: 620px;
    background-size: 330px auto;
    background-position: center center;
  }
}

@media (max-width: 540px) {
  .hero {
    min-height: 560px;
    background-size: 280px auto;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 0.88rem;
  }
}
