/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f9fafb;
  color: #111;
  line-height: 1.6;
}

/* Smooth scrolling for in-page anchors and offset for fixed header */
html { scroll-behavior: smooth; }
section { scroll-margin-top: 90px; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 80px 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 20px;
}

p {
  margin-bottom: 15px;
  color: #5a5959;
}

/* HEADER */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #272626;
  font-weight: 500;
}

nav a:hover {
  color: #0e0d0d;
}

/* mobile-only action hidden on desktop; shown under mobile media query */
.mobile-action { display: none; }

.btn {
  background: #080808;
  color: #FFF;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #0c0c0c;
  color: #FFF;
}

.hero {
  padding-top: 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero img {
  width: 100%;
  border-radius: 16px;
}

.grid {
  display: grid;
  gap: 25px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  border: 1px solid #e4cdcd;
  padding: 25px;
  border-radius: 14px;
  transition: 0.3s;
  background: white;
}

.card:hover {
  border-color: #181717;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.gallery2 {
  grid-template-columns: auto auto;
}

.gallery2 img {
  max-width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s;
}

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

/* Lightbox styles */
.gallery img { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease;
}
.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  display: block;
}
.lightbox-caption {
  margin-top: 12px;
  color: #ffffff;
  max-width: 90%;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.95;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 36px;
  cursor: pointer;
  padding: 8px 12px;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }


.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

footer {
  background: #030303;
  color: #FFF;
  padding: 60px 0;
}

footer a {
  color: #FFF;
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

small {
  display: block;
  margin-top: 30px;
  text-align: center;
  opacity: 0.8;
}

.nav-toggle {
  display: none;
}

@media(max-width:768px) {

  .hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* hide desktop nav, show hamburger */
  nav ul {
    display: none;
  }

  /* hide desktop .btn on mobile (we show mobile-action inside menu) */
  .desktop-action { display: none; }

  .nav-toggle {
    display: block;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: 12px;
    position: relative;
  }

  .nav-toggle .hamburger,
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    content: '';
    display: block;
    width: 26px;
    height: 2px;
    background: #272626;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  /* place lines with explicit translateY offsets so rotations are precise */
  .nav-toggle .hamburger { transform: translate(-50%, -50%); }
  .nav-toggle .hamburger::before { transform: translate(-50%, -50%) translateY(-8px); }
  .nav-toggle .hamburger::after { transform: translate(-50%, -50%) translateY(8px); }

  /* when open: rotate the FIRST and LAST lines into an X, hide the middle line */
  body.nav-open .nav-toggle .hamburger {
    transform: translate(-50%, -50%);
    background: transparent; /* hide only the middle bar without affecting pseudo-elements */
  }
  body.nav-open .nav-toggle .hamburger::before { transform: translate(-50%, -50%) rotate(45deg); }
  body.nav-open .nav-toggle .hamburger::after { transform: translate(-50%, -50%) rotate(-45deg); }

  /* mobile menu panel */
  nav ul {
    position: absolute;
    top: 100px;
    right: 18px;
    background: white;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    z-index: 1100;
  }

  body:not(.nav-open) nav ul { display: none; }

  nav ul li a { padding: 8px 12px; }
}

/* ensure mobile-action button styles */
@media(max-width:768px) {
  .mobile-action { display: block; }
  .mobile-action .btn { display: block; width: 100%; text-align: center; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 60px;
  height: auto;
}

/* Utility */
.center-text {
  text-align: center;
}

/* social link style: inherit color and remove underline */
.social-link {
  color: inherit;
  text-decoration: none;
}
.social-link:hover {
  text-decoration: underline;
}

li {
  list-style: none;
}

/* Livro de Reclamações link */
.complaints{
  text-align: center;
  margin: 1rem 0 2rem;
}
.complaints-link{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFF;
  text-decoration: none;
  font-size: 0.95rem;
}
.complaints-link svg{
  width: 20px;
  height: 20px;
  display: block;
  color: #FFF;
}
.complaints-link:hover{ text-decoration: underline; }

.complaints-img{
  width: 180px;
  height: auto;
  display: block;
}
