/* Estilos Customizados - Gil Pneus */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff7ed;
  color: #111;
  line-height: 1.6;
}

/* Header e Navegação */
header {
  background: white;
  border-bottom: 2px solid #fed7aa;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 28px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.logo h1 span:nth-child(1) { color: black; font-weight: bold; }
.logo h1 span:nth-child(2) { color: #ea580c; font-weight: bold; }

.logo p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* Menu Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

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

nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ea580c;
}

/* Ícones */
i {
  margin-right: 8px;
  color: #ea580c;
}

i.icon-large {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
}

/* Listas com ícones */
li i {
  display: inline-block;
  width: 20px;
  text-align: center;
}

/* Botões */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #ea580c, #d84804);
  color: white;
  padding: 16px 45px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary i {
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d84804, #c23703);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3);
}

/* Imagens responsivas */
img.service-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 20px 0;
  display: block;
}

img.gallery-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 15px 0;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.gallery-item {
  background: white;
  padding: 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  padding: 15px;
  background: #f5f5f5;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* Instalacoes section */
.instalacoes-section {
  padding: 60px 20px;
  background: #fff7ed;
}

.instalacoes-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
}

.instalacoes-text h3 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #111;
  text-align: left;
}

.instalacoes-text p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.8;
}

.instalacoes-image img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  display: block;
}

/* Logo marquee */
.logo-marquee {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 16px 0;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: logo-scroll 28s linear infinite;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.logo-item img {
  height: 48px;
  width: auto;
  filter: grayscale(10%);
  opacity: 0.9;
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Dropdown de Serviços */
nav li.dropdown {
  position: relative;
}

nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 1001;
}

nav li.dropdown:hover .submenu {
  display: flex;
}

nav .submenu li {
  padding: 0;
}

nav .submenu a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid #f5f5f5;
  font-weight: 400;
}

nav .submenu li:last-child a {
  border-bottom: none;
}

nav .submenu a:hover {
  background: #fff7ed;
  color: #ea580c;
}

@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }

  img.service-image {
    width: 100% !important;
    max-width: 100% !important;
    margin: 15px 0;
  }
}

/* Mobile Menu */
nav {
  display: flex;
}

/* Footer */
footer {
  background: #111;
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

footer h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

footer p {
  margin: 10px 0;
  font-size: 16px;
}

footer a {
  color: #fed7aa;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: white;
}

.footer-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Seções gerais */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

h2 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #111;
}

h3 {
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
  color: #111;
}

/* Cards de Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid #ea580c;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.service-card h4 {
  color: #ea580c;
  margin-bottom: 10px;
  font-size: 20px;
}

.service-card p {
  color: #666;
  font-size: 14px;
}

.service-card-image {
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Contactos */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.contact-card h4 {
  color: #ea580c;
  margin-bottom: 15px;
  font-size: 18px;
}

.contact-card p {
  color: #666;
  margin: 10px 0;
}

.contact-card a {
  color: #ea580c;
  text-decoration: none;
  font-weight: bold;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Sobre */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

.about-text h3 {
  text-align: left;
  font-size: 28px;
  color: #ea580c;
  margin-bottom: 20px;
}

.about-text p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.8;
}

.features-list {
  list-style: none;
  margin-top: 20px;
}

.features-list li {
  padding: 10px 0;
  color: #666;
  border-bottom: 1px solid #fed7aa;
}

/* Responsivo */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .logo img {
    height: 55px;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  nav.active ul {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #fed7aa;
  }

  nav.active ul {
    display: flex;
  }

  nav a {
    display: block;
    padding: 10px 0;
  }

  nav .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: #f5f5f5;
    min-width: auto;
    pointer-events: auto;
  }

  nav li.dropdown:hover .submenu {
    display: none;
  }

  nav .submenu.active {
    display: flex !important;
  }

  nav .submenu a {
    padding: 8px 10px;
    cursor: pointer;
  }

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

  .instalacoes-text h3 {
    text-align: center;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

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

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

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

  footer p {
    font-size: 14px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  .logo h1 {
    font-size: 24px;
  }

  section {
    padding: 20px 15px;
  }

  footer {
    padding: 30px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}
