* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #f5f0e8;
  line-height: 1.6;
  font-size: 17px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  display: block;
}

.navbar {
  width: 100%;
  padding: 22px 7%;
  position: fixed;
  top: 0;
  left: 0;
  background: #181818;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

.logo {
  color: #d5b37a;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 1px;
}

.menu {
  display: flex;
  gap: 24px;
}

.menu a {
  font-size: 14px;
  transition: 0.3s;
}

.menu a:hover {
  color: #d5b37a;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #f5f0e8;
  font-size: 28px;
  cursor: pointer;
}

/* =========================
   HERO - imagem fixa e sem esticar
   ========================= */

/* =========================
   HERO FINAL - ALINHADA E RESPONSIVA
   ========================= */

.hero {
  min-height: calc(100vh - 80px);
  background: #111;

  display: grid;
  grid-template-columns: 47% 53%;
  gap: 45px;
  align-items: center;

  width: 100%;
  max-width: none;
  margin: 0;

  padding: 120px 7% 80px;
}

.hero-content {
  max-width: 650px;
}

.hero-image {
  width: 100%;
  height: 900px;
  max-width: none;
  overflow: hidden;
  border: 1px solid #2c2c2c;
  justify-self: stretch;
  transform: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================
   HERO - TABLET
   ========================= */

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 120px 7% 80px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-image {
    width: 100%;
    height: 500px;
  }
}

/* =========================
   HERO - TELEMÓVEL
   ========================= */

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 5% 70px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    height: 380px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 110px 5% 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-image {
    height: 320px;
  }
}

.subtitle {
  color: #d5b37a;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 14px;
}

h1 {
  font-size: 60px;
  line-height: 1.1;
  margin-bottom: 24px;
}

h2 {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 22px;
}

h3 {
  margin-bottom: 12px;
}

.hero p {
  max-width: 660px;
  font-size: 18px;
  color: #ddd;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 26px;
  font-weight: bold;
  transition: 0.3s;
}

.primary {
  background: #d5b37a;
  color: #111;
}

.primary:hover {
  background: #f0d29a;
}

.secondary {
  border: 1px solid #d5b37a;
  color: #d5b37a;
}

.secondary:hover {
  background: #d5b37a;
  color: #111;
}

.section {
  padding: 95px 7%;
}

.section-header {
  max-width: 100px;
  margin-bottom: 45px;
}

.about {
  background: #181818;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.about-img img {
  height: 540px;
  object-fit: cover;
}

.about-text p {
  color: #cfcfcf;
  margin-bottom: 18px;
  margin-right: 40px;
}

.services {
  background: #111;
  text-align: center;
}

.services .section-header {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  margin-top: 45px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
}

.service-card {
  background: #1c1c1c;
  border: 1px solid #2c2c2c;
  padding: 32px 24px;
  text-align: left;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: #d5b37a;
}

.service-card span {
  color: #d5b37a;
  font-size: 14px;
  font-weight: bold;
}

.service-card h3 {
  margin-top: 18px;
}

.service-card p {
  color: #cfcfcf;
}

.materials {
  background: #181818;
}

.materials-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  align-items: center;
}

.materials-text {
  max-width: 620px;
}

.materials-text p {
  color: #cfcfcf;
  margin-bottom: 18px;
}

.materials-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.material-card {
  background: #1c1c1c;
  border: 1px solid #2c2c2c;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: 0.3s;
}

.material-card:hover {
  transform: translateY(-6px);
  border-color: #d5b37a;
}

.material-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio {
  background: #181818;
  text-align: center;
}

.portfolio .section-header {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.filter-buttons {
  margin: 35px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  padding: 11px 20px;
  border: 1px solid #d5b37a;
  background: transparent;
  color: #d5b37a;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #d5b37a;
  color: #111;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: -45px;
  margin-left: 8px;
  margin-right: 8px;
}

.portfolio-item {
  background:#222;
  text-align: left;
  overflow: hidden;
}

.portfolio-item img {
  height: 330px;
  object-fit: cover;
  transition: 0.4s;
}

.portfolio-item,
.material-card,
.technique-card {
  cursor: pointer;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-info {
  padding: 24px;
}

.portfolio-info p {
  color: #cfcfcf;
}

.hide {
  display: none;
}

.contact {
  background: #111;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
}

.contact-info p {
  color: #cfcfcf;
  margin-bottom: 18px;
}

.contact-details {
  margin: 28px 0;
}

.whatsapp-btn {
  display: inline-block;
  background: #d5b37a;
  color: #111;
  padding: 14px 24px;
  font-weight: bold;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  background: #f0d29a;
}

.contact-form {
  background: #1c1c1c;
  padding: 35px;
  display: flex;
  flex-direction: column;
  margin-right: 8px;
}

.contact-form label {
  color: #d5b37a;
  font-size: 14px;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #111;
  color: #f5f0e8;
  border: 1px solid #333;
  padding: 13px;
  margin-bottom: 18px;
  margin-right: 5px;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #d5b37a;
}

.contact-form button {
  background: #d5b37a;
  color: #111;
  border: none;
  padding: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #f0d29a;
}

footer {
  background: #080808;
  color: #aaa;
  text-align: center;
  padding: 25px 7%;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .menu {
    gap: 16px;
  }

  .menu a {
    font-size: 13px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .materials-layout {
    grid-template-columns: 1fr;
  }

  .techniques-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-img img {
    height: 420px;
  }
}

@media (max-width: 840px) {
  .navbar {
    padding: 18px 5%;
  }

  .menu-btn {
    display: block;
  }

  .menu {
    position: absolute;
    top: 72px;
    right: 5%;
    width: 260px;
    background: #181818;
    padding: 22px;
    flex-direction: column;
    display: none;
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    font-size: 14px;
  }

  .hero {
    padding: 130px 5% 80px;
  }

  .section {
    padding: 75px 5%;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .services-grid,
  .techniques-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .materials-gallery {
    grid-template-columns: 1fr;
  }

  .materials-gallery img,
  .materials-gallery img:first-child {
    grid-column: auto;
    height: 270px;
  }

  .portfolio-item img,
  .technique-card img {
    height: 270px;
  }
}

.footer-social {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.footer-social a:hover {
  transform: translateY(-3px);
}

.footer-social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* =========================
   LIGHTBOX
   Imagem grande ao clicar numa foto
   ========================= */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 30px;
}

.lightbox.active {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  border: 1px solid #d5b37a;
}

.lightbox video {
  display: none;
  background: #000;
}

.lightbox img {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #f5f0e8;
  font-size: 45px;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover {
  color: #d5b37a;
}

/* Mostra que as imagens são clicáveis */
.portfolio-item img,
.material-card img,
.technique-card img {
  cursor: pointer;
}

/* =========================
   CORREÇÃO FINAL DAS TÉCNICAS
   Alinha a grelha com o resto do site
   ========================= */

.techniques,
.techniques.section {
  background: #111;
  text-align: center;
  padding: 95px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  overflow: hidden;
}

.techniques .section-header {
  width: 86%;
  max-width: 900px;
  margin: 0 auto 35px !important;
  text-align: center;
}

.techniques-intro {
  width: 86%;
  max-width: 900px;
  margin: 0 auto 55px !important;
  text-align: center;
}

.techniques-intro p {
  color: #cfcfcf;
  margin: 0 auto 18px !important;
  text-align: center;
}

/* AQUI é o mais importante */
.techniques-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px !important;

  width: 86% !important;
  max-width: 1600px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding: 0 !important;
}

.technique-card {
  background: #1c1c1c;
  border: 1px solid #2c2c2c;
  overflow: hidden;
  transition: 0.3s;
  width: 100%;
  text-align: left;
}

.technique-card:hover {
  transform: translateY(-8px);
  border-color: #d5b37a;
}

.technique-card img,
.technique-card video {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: #000;
}

.technique-card div {
  padding: 24px;
  text-align: left;
}

.technique-card h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.technique-card p {
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================
   TÉCNICAS - TABLET
   ========================= */

@media (max-width: 1120px) {
  .techniques-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    width: 90% !important;
  }

  .techniques .section-header,
  .techniques-intro {
    width: 90% !important;
  }
}

/* =========================
   TÉCNICAS - TELEMÓVEL
   ========================= */

@media (max-width: 840px) {
  .techniques,
  .techniques.section {
    padding: 75px 0 !important;
  }

  .techniques .section-header,
  .techniques-intro {
    width: 90% !important;
    max-width: 100% !important;
  }

  .techniques-intro {
    margin-bottom: 40px !important;
  }

  .techniques-intro p {
    font-size: 16px;
    line-height: 1.7;
  }

  .techniques-grid {
    grid-template-columns: 1fr !important;
    width: 90% !important;
    gap: 28px !important;
  }

  .technique-card img,
  .technique-card video {
    height: 320px !important;
  }

  .technique-card div {
    padding: 22px;
  }

  .technique-card h3 {
    font-size: 24px;
  }

  .technique-card p {
    font-size: 17px;
    line-height: 1.6;
  }
}

@media (max-width: 500px) {
  .techniques-grid {
    width: 88% !important;
  }

  .techniques .section-header,
  .techniques-intro {
    width: 88% !important;
  }

  .technique-card img,
  .technique-card video {
    height: 290px !important;
  }
}