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

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #60a5fa;
    --accent-cyan: #06b6d4;
    --dark-navy: #0f172a;
    --text-gray: #64748b;
    --light-gray: #f1f5f9;
    --nav-height: 112px; /* atualizado dinamicamente pelo script.js */
}

html {
    scroll-behavior: smooth;
    /* compensa o menu fixo ao navegar para âncoras (#services, #about, ...) */
    scroll-padding-top: calc(var(--nav-height) - 30px);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Navigation */
nav {
    background: white;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-navy);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 150px 5% 100px;
    margin-top: var(--nav-height);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--accent-cyan);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-image {
    background: url('images/photo-1522071820081-009f0129c71c.jpg') center/cover;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Section Styles */
section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-top: 4px solid var(--secondary-blue);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Ícones dos serviços: todos com o mesmo tamanho, independentemente da proporção original */
.service-card .service-icon img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    object-position: left center;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Platforms Section */
.platforms-section {
    background: var(--light-gray);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 3rem;
}

.platform-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.platform-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.platform-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.platform-features {
    list-style: none;
    margin-top: 1.5rem;
}

.platform-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.platform-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Industries */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
}

.industry-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.industry-icon {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--light-blue));
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.industry-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* About Us Section */
.about-section {
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    background: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=600&h=600&fit=crop') center/cover;
    height: 600px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.certifications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.cert-badge {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-cyan);
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.innovation-cta {
    background: linear-gradient(135deg, var(--accent-cyan), var(--secondary-blue));
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
}

.innovation-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.innovation-cta p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Contact Form Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    float: right;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: var(--dark-navy);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

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

/* Responsive */
@media (max-width: 968px) {
    .hero-content,
    .about-content,
    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

/* ==============================================
   ESTILOS ADICIONAIS - ADICIONAR AO styles.css
   ============================================== */

/* Logo */
.logo-img {
  height: 80px;
  display: block;
}

@media (max-width: 600px) {
  .logo-img {
    height: 56px;
  }

  .nav-links {
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  .nav-contact-btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.9rem !important;
  }
}

/* Navigation Contact Button */
.nav-contact-btn {
  padding: 0.5rem 1.5rem;
}

/* About Section - Excellence Title */
.about-excellence-title {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* About Section - Excellence Text */
.about-excellence-text {
  margin-bottom: 2rem;
  color: var(--text-gray);
  line-height: 1.8;
}

/* About Section - Certifications Title */
.about-certifications-title {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* About Section - Experience */
.about-experience {
  margin-top: 2rem;
  color: var(--text-gray);
}

/* Innovation CTA Button */
.innovation-cta-btn {
  background: white;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

/* Contact Modal Title */
.modal-title {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Contact Modal Subtitle */
.modal-subtitle {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

/* Form Select */
.form-select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
}

/* Form Submit Button */
.form-submit-btn {
  width: 100%;
  font-size: 1.1rem;
}

/* Footer Title */
.footer-title {
  margin-bottom: 1rem;
}

/* Footer Tagline */
.footer-tagline {
  margin-bottom: 1rem;
}

/* Footer Copyright */
.footer-copyright {
  margin-top: 1rem;
  opacity: 0.7;
}

/* ==============================================
   RESPONSIVO (tablet e telemóvel)
   ============================================== */

/* Imagens das plataformas: ajustam-se à largura do cartão */
.platform-card .service-icon img {
  display: block;
  width: 100%;
  max-width: 478px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 968px) {
  section {
    padding: 60px 5%;
  }

  .platform-card {
    padding: 2rem;
  }

  .about-image {
    height: 400px;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 0.9rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 80px 5% 60px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-image {
    height: 250px;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header p {
    font-size: 1.05rem;
  }

  .service-card,
  .platform-card {
    padding: 1.5rem;
  }

  .platform-card h3 {
    font-size: 1.5rem;
  }

  .innovation-cta {
    padding: 2rem 1.25rem;
  }

  .innovation-cta h3 {
    font-size: 1.8rem;
  }

  .innovation-cta p {
    font-size: 1.05rem;
  }

  .modal-content {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 520px) {
  /* menu em duas linhas: logótipo em cima, links por baixo */
  nav {
    padding: 0.5rem 4%;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-links {
    gap: 0.7rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo-img {
    height: 48px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }

  .about-image {
    height: 280px;
  }
}
