:root {
    --primary-color: #0A2540; /* Azul escuro/Grafite */
    --secondary-color: #0077FF; /* Azul mais vibrante para detalhes */
    --accent-color: #FFC700; /* Amarelo/Laranja para CTAs */
    --background-color: #FFFFFF;
    --background-light-gray: #F6F9FC;
    --text-color: #333;
    --text-light: #6B7C93;
    --white-color: #FFFFFF;
    --border-color: #E6E6E6;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--background-light-gray);
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #ffda49;
}

.cta-button.large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 100px;
    margin-right: 10px;
}

#main-header nav ul {
    display: flex;
    list-style: none;
}

#main-header nav ul li {
    margin-left: 30px;
}

#main-header nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

#main-header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

#main-header nav ul li a:hover::after {
    width: 100%;
}

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

#mobile-menu-toggle svg {
    stroke: var(--primary-color);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../img/hero-background.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.7); /* Overlay from primary color */
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-family: var(--font-secondary);
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 400;
    opacity: 0.9;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item img {
    height: 60px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card-content {
    padding: 25px;
}

.service-card-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-card-content p {
    color: var(--text-light);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.project-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: var(--white-color);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(30%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-info h3 {
    margin-bottom: 10px;
}
.project-info p {
    font-size: 0.9rem;
}


/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author strong {
    color: var(--primary-color);
    display: block;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.client-logos {
    text-align: center;
}
.client-logos p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.logos-container img {
    height: 40px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.logos-container img:hover {
    opacity: 1;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-text h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-text p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}
.contact-info-block p {
    margin-bottom: 10px;
}

.contact-form {
    background: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-primary);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.2);
}

.contact-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.form-success h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}
.form-success p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    color: var(--white-color);
    margin-bottom: 15px;
}
.footer-about p {
    color: var(--text-light);
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 15px;
    color: var(--white-color);
    font-family: var(--font-secondary);
}

.footer-links ul {
    list-style: none;
}
.footer-links ul li a, .footer-social a {
    text-decoration: none;
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.footer-links ul li a:hover, .footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}
.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 992px) {
    .section-title, .contact-text h2 { font-size: 2rem; }
    #hero h1 { font-size: 3rem; }

    .contact-container {
        grid-template-columns: 1fr;
    }

    footer .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    #main-header nav { display: none; }
    #main-header .cta-button { display: none; }
    #mobile-menu-toggle { display: block; }
    
    #main-header.open nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    #main-header.open nav ul {
        flex-direction: column;
        width: 100%;
    }
    #main-header.open nav ul li {
        margin: 10px 0;
        text-align: center;
    }
     #main-header.open nav ul li a {
        color: var(--primary-color);
     }
    

    #hero h1 { font-size: 2.5rem; }
    #hero p { font-size: 1.1rem; }

    footer .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.7rem;     /* menor que os 2rem anteriores */
    line-height: 1.3;
    word-break: break-word;
  }

  #hero p {
    font-size: 1rem;
  }

  .no-break {
    white-space: normal;  /* Remove nowrap para permitir quebra de linha */
  }
}


/* Scroll reveal initial state */
.sr-hidden {
    visibility: hidden;
}

.accordion {
  margin-bottom: 2rem;
}

.accordion-item {
  border-bottom: 1px solid #ccc;
}

.accordion-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  color: #29588B; /* azul institucional */
  transition: 0.3s;
}

.accordion-toggle:hover {
  color: #183c66;
}

.accordion-content {
  display: none;
  padding-bottom: 1rem;
  color: #333;
}

.accordion-content ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin: 0.5rem 0;
}

.accordion-toggle.active + .accordion-content {
  display: block;
}
.no-break {
  white-space: nowrap;
}
