/* =====================
   CUSTOM PROPERTIES
   ===================== */
:root {
  --gap: clamp(12px, 2vw, 24px);
}

/* =====================
   FONTS
   ===================== */
@font-face {
  font-family: 'ClashDisplay-Variable';
  src: url('../fonts/ClashDisplay-Variable.woff2') format('woff2'),
       url('../fonts/ClashDisplay-Variable.woff') format('woff'),
       url('../fonts/ClashDisplay-Variable.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'ClashDisplay-Extralight';
  src: url('../fonts/ClashDisplay-Extralight.woff2') format('woff2'),
       url('../fonts/ClashDisplay-Extralight.woff') format('woff'),
       url('../fonts/ClashDisplay-Extralight.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'ClashDisplay-Light';
  src: url('../fonts/ClashDisplay-Light.woff2') format('woff2'),
       url('../fonts/ClashDisplay-Light.woff') format('woff'),
       url('../fonts/ClashDisplay-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'ClashDisplay-Regular';
  src: url('../fonts/ClashDisplay-Regular.woff2') format('woff2'),
       url('../fonts/ClashDisplay-Regular.woff') format('woff'),
       url('../fonts/ClashDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'ClashDisplay-Medium';
  src: url('../fonts/ClashDisplay-Medium.woff2') format('woff2'),
       url('../fonts/ClashDisplay-Medium.woff') format('woff'),
       url('../fonts/ClashDisplay-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'ClashDisplay-Semibold';
  src: url('../fonts/ClashDisplay-Semibold.woff2') format('woff2'),
       url('../fonts/ClashDisplay-Semibold.woff') format('woff'),
       url('../fonts/ClashDisplay-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'ClashDisplay-Bold';
  src: url('../fonts/ClashDisplay-Bold.woff2') format('woff2'),
       url('../fonts/ClashDisplay-Bold.woff') format('woff'),
       url('../fonts/ClashDisplay-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0E0E0F;
  color: #FFF;
  font-family: 'ClashDisplay-Regular', sans-serif;
  font-weight: 400;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h3 {
  font-family: 'ClashDisplay-Semibold', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 48px);
  line-height: 1.3;
  letter-spacing: -0.6px;
  text-decoration-line: underline;
  text-transform: capitalize;
  color: #FFFFFF;
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(8px, 1.25vw, 15px) clamp(8px, 1.5vw, 15px) 0;
  margin-bottom: clamp(10px, 1.25vw, 15px);
}

.navbar-brand img {
  width: clamp(110px, 10vw, 146px);
  height: auto;
}

.menu {
  content: url('../img/ic_menu.svg');
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu.open {
  content: url('../img/ic_menu_fechar.svg');
}

/* =====================
   MAIN 1 — GRID
   ===================== */
#main1,
#main2 {
  animation: fadeIn 0.6s ease;
}

#main1 {
  padding: 0 clamp(16px, 3vw, 30px);
}

.main1-grid {
  display: grid;
  grid-template-columns: minmax(0, 180px) 1fr; /* título estreito + cards */
  gap: var(--gap);
  align-items: end;
}

.main1-title {
  display: flex;
  align-items: flex-start;
  align-self: start;
}

.main1-title h3 {
  font-size: clamp(14px, 1.6vw, 22px);
}

/* =====================
   CARDS ROW — base (mobile: stacked)
   ===================== */
.cards-row {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* =====================
   MAIN 1 — CARDS (base)
   ===================== */
.main1-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.main1-card a {
  width: 100%;
}

.img-desktop {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: bottom center;
}

.img-mobile { display: none; }



/* =====================
   MAIN 1 — LINKS / PARAGRAPHS
   ===================== */
main a,
main a:hover,
main a:active {
  color: #FFF;
  text-decoration: none;
}

main p {
  padding-top: 15px;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.5;
  letter-spacing: 0.2px;
  position: relative;
}

#main1 p::after {
  content: url('../img/ic_seta.svg');
  width: 40px;
  height: 40px;
  position: absolute;
  right: -15px;
  top: 5px;
}

/* =====================
   MAIN 2 — MENU ABERTO
   ===================== */
#main2 {
  padding: clamp(60px, 10vw, 150px) clamp(16px, 3vw, 30px) 20px;
  flex: 1;
  position: relative;
}

.main2-content {
  position: relative;
  height: 100%;
}

#main2 h3 {
  text-decoration: none;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  margin-bottom: 10px;
}

#main2 h3 img,
#main2 h6 img {
  display: inline;
  vertical-align: middle;
}

#main2 h6 {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.8;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-top: clamp(12px, 2vw, 24px);
}

#main2 .contacts {
  display: none;
}

/* =====================
   FOOTER
   ===================== */
footer {
  padding: clamp(20px, 3vh, 40px) clamp(16px, 3vw, 30px) clamp(10px, 1.5vh, 20px);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

footer h5 {
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

footer h5 img {
  display: inline;
  width: auto;
  height: 1em;
}

footer .copyright {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.2px;
  margin-top: 4px;
}

.footer-contacts {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-contacts p {
  display: inline-block;
}

.footer-contacts p a {
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 2;
  text-align: right;
  text-decoration-line: underline;
  text-transform: uppercase;
  color: #FFFFFF;
}

.footer-contacts span {
  display: inline-block;
  width: 1px;
  height: 24px;
  background: #FFFFFF;
  flex-shrink: 0;
}

/* =====================
   DESKTOP — sem scroll + carrossel
   min-width: 768px
   ===================== */
@media (min-width: 768px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }

  main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  /* main1 preenche todo o espaço de main */
  #main1 {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  /* grid ocupa toda a altura de #main1 */
  .main1-grid {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }

  /* 3 cards em linha */
  .cards-row {
    display: flex;
    flex-direction: row;
    gap: var(--gap);
    flex: 1;
    min-height: 0;
  }

  .main1-card {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
  }

  .main1-card a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
  }

  /* imagem preenche o espaço disponível no card, ancorada na base */
  .img-desktop {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: cover;
    object-position: bottom left;
  }
}

/* =====================
   TABLET — max 1024px
   ===================== */
@media (max-width: 1024px) {
  /* grid de 1 coluna: título em cima, cards embaixo */
  .main1-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  #main1 a {
    padding-left: 0;
  }
}

/* =====================
   MOBILE — max 767px
   ===================== */
@media (max-width: 767px) {
  /* Navbar */
  .navbar {
    justify-content: center;
    position: relative;
    padding: clamp(16px, 2.5vw, 30px) clamp(16px, 3vw, 30px) 0;
    margin-bottom: clamp(20px, 2.5vw, 30px);
  }

  .main1-title h3 {
    font-size: clamp(20px, 5vw, 32px);
  }

  .menu {
    position: absolute;
    right: 16px;
    top: 84%;
    transform: translateY(-50%);
  }

  /* Imagens */
  .img-desktop { display: none; }
  .img-mobile  { display: block; }

  /* Grid */
  .main1-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  h3 br {
    display: none;
  }

  /* Cards empilhados no mobile */
  .cards-row {
    overflow: visible;
  }

  .main1-card {
    width: 100%;
  }

  /* Main 2 */
  #main2 {
    height: calc(100vh - 100px);
    overflow-y: auto;
  }

  #main2 h3 {
    font-size: clamp(28px, 8vw, 42px);
    letter-spacing: -0.8px;
    max-width: 100%;
    margin-bottom: 10px;
  }

  #main2 h6 {
    margin-top: 60px;
  }

  #main2 p {
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    text-decoration-line: underline;
    text-transform: uppercase;
    padding: 0;
    margin: 20px;
    max-width: 100%;
  }

  #main2 .contacts {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  /* Footer */
  footer {
    margin-top: clamp(24px, 5vw, 40px);
  }

  footer.open {
    display: none;
  }

  .footer-inner {
    justify-content: center;
  }

  footer h5 {
    text-align: center;
    font-size: 16px;
  }

  .footer-contacts,
  footer .copyright {
    display: none;
  }
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}