/* Estilos para o website da Automatismos Algarve */

:root {
  --primary-color: #1a2c50;    /* Azul escuro */
  --secondary-color: #e9a33a;  /* Dourado */
  --accent-color: #d64933;     /* Vermelho para ações */
  --light-color: #f2f2f2;      /* Cinza claro para fundos */
  --dark-color: #333333;       /* Cinza escuro para textos */
  --font-primary: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

/* Reset e estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cabeçalho */
header {
  background-color: var(--primary-color);
  padding: 15px 0; /* Adjusted padding for potentially taller logo */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none; /* Remove underline from link */
}

.logo-text {
  color: white;
  font-family: var(--font-heading);
  font-weight: 700; /* Bold */
  font-size: 1.6rem; /* Adjust as needed */
  white-space: nowrap; /* Prevent text wrapping */
}

.logo {
  max-width: 200px;
  height: auto;
}

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

.nav-menu {
  list-style: none;
  display: flex;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color);
}

/* Menu Mobile */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: white;
}

/* Secção Hero */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Secções */
section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
}

/* Serviços */
.services {
  background-color: white;
}

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

.service-card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Sobre Nós */
.about {
  background-color: var(--light-color);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
}

.about-content h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

/* Portfólio */
.portfolio {
  background-color: white;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 250px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 44, 80, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-title {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-align: center;
  padding: 0 20px;
}

/* Contactos */
.contact {
  background-color: var(--light-color);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
}

.contact-details h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-primary);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-top: 30px;
}

/* Rodapé */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 40px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--secondary-color);
}

.footer-links h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Adicionar estilos gerais para links */
a {
  color: #0056b3; /* Azul mais escuro para links */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color); /* Cor de destaque no hover */
  text-decoration: underline;
}

/* Ajustar links específicos que devem manter outras cores */
.nav-link, .nav-link:hover {
    /* Mantém os estilos originais do menu de navegação */
}

.btn, .btn:hover {
    /* Mantém os estilos originais dos botões */
}

.footer-links a,
.footer-contact a {
  color: #ddd; /* Cor original para links no rodapé */
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--secondary-color); /* Cor original para hover de links no rodapé */
  text-decoration: underline;
}

.social-icon, .social-icon:hover {
    /* Mantém os estilos originais dos ícones sociais */
}

.footer-bottom a {
    color: var(--secondary-color); /* Manter cor de destaque para o link do desenvolvedor */
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

.contact-details a {
    color: var(--dark-color); /* Manter cor escura para links de contacto (telefone/email) */
}

.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-control.checkbox a {
    color: var(--primary-color); /* Manter cor primária para link da política de privacidade */
}

.form-control.checkbox a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
  }
  
  .about-image {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 101;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 0;
    gap: 0;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s;
    padding-top: 80px;
    z-index: 100;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    margin: 16px 0;
  }

  .nav-link {
    font-size: 1.5rem;
  }

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

/* Styles for FAQ page */
.faq-page-content .faq-category h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.faq-page-content .faq-container {
    margin-bottom: 30px;
}

/* FAQ item general styles (ensure these are effective) */
.faq-item {
    background-color: white;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3, .faq-question h4 { /* Combined for h3/h4 in FAQ questions */
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 0;
}

.faq-icon i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 20px;
    color: #555;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed for content */
    padding: 15px 0px 10px 0px; /* Adjust padding when open */
}

.faq-item.active .faq-icon i {
    transform: rotate(45deg);
}

/* Contact Form Specifics (from original contacts.html context if needed) */
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control.checkbox {
    display: flex;
    align-items: flex-start; /* Align checkbox with the start of the label text */
    margin-bottom: 20px;
}

.form-control.checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 5px; /* Align checkbox nicely with text */
}

.form-control.checkbox label {
    font-weight: normal;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

.contact-details a {
    color: var(--dark-color); /* Manter cor escura para links de contacto (telefone/email) */
}

.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-control.checkbox a {
    color: var(--primary-color); /* Manter cor primária para link da política de privacidade */
}

.form-control.checkbox a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
  }
  
  .about-image {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    background: var(--primary-color);
    width: 100%;
    height: calc(100vh - 80px);
    flex-direction: column;
    transition: 0.5s;
    padding: 40px 0;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 0;
    padding: 15px 0;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
} 
