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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 50px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* Cores principais baseadas na logo */
.nav-link:hover {
    color: #2B2B7A;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2B2B7A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.contact-btn {
    background: #2B2B7A;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-btn:hover {
    background: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(43, 43, 122, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding-top: 100px;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #FF8C00;
    /* color: #1e293b; */
}

.highlight {
    color: #FF8C00;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2B2B7A;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2B2B7A;
    color: white;
}

.btn-primary:hover {
    background: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(43, 43, 122, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2B2B7A;
    border: 2px solid #2B2B7A;
}

.btn-secondary:hover {
    background: #2B2B7A;
    color: white;
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: start;
}

.about-text {
    max-width: 800px;
    width: 100%;
}

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

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
}

.about-list i {
    color: #10b981;
    font-size: 1.125rem;
}

.companies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.company {
    background: #2B2B7A;
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.company:nth-child(2) {
    background: #FF8C00;
}

.company h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: #2B2B7A;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card:nth-child(2) .service-icon {
    background: #FF8C00;
}

.service-card:nth-child(3) .service-icon {
    background: #DC143C;
}

.service-card:nth-child(4) .service-icon {
    background: #2B2B7A;
}

.service-card:nth-child(5) .service-icon {
    background: #FF8C00;
}

.service-card:nth-child(6) .service-icon {
    background: #DC143C;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-image {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Standards Section */
.standards {
    padding: 6rem 0;
    background: white;
}

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

.standard-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.standard-card:hover {
    background: white;
    border-color: #2B2B7A;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(43, 43, 122, 0.1);
}

.standard-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
}

.nr13 {
    background: #DC143C;
}

.asme {
    background: #2B2B7A;
}

.nbic {
    background: #FF8C00;
}

.api {
    background: #2B2B7A;
}

.abnt {
    background: #FF8C00;
}

.nr12 {
    background: #DC143C;
}

.standard-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.standard-card p {
    color: #64748b;
    font-size: 0.875rem;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: #f8fafc;
}

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

.project-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
}

.contact-item i {
    color: #2B2B7A;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.contact-item a {
    color: #2B2B7A;
    text-decoration: none;
}

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

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2B2B7A;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF8C00;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #FF8C00;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "logo contact hamburger"
            "menu menu menu";
        align-items: center;
        gap: 1rem;
        position: relative;
    }

    .nav-logo {
        grid-area: logo;
    }

    .nav-menu {
        grid-area: menu;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        display: none;
        background: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-contact {
        grid-area: contact;
        justify-self: center;
        font-size: 0.85rem;
    }

    .nav-contact .contact-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hamburger {
        display: flex;
        grid-area: hamburger;
        justify-self: end;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

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

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

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

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

    .standards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem;
    }

    .nav-contact .contact-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .nav-contact .contact-btn i {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .stat {
        min-width: 120px;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.standard-card,
.project-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2B2B7A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF8C00;
}

/* Footer Normas */
.footer-normas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: center;
    max-width: 400px;
}

.norma-img {
    height: 90px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.norma-img:hover {
    transform: scale(1.4);
    opacity: 0.8;
}

@media (max-width: 1100px) and (min-width: 901px) {
    .footer-normas {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .norma-img:hover {
        transform: scale(1.15);
    }
}

@media (max-width: 900px) {
    .footer-normas {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .norma-img:hover {
        transform: scale(1.08);
    }
}

@media (max-width: 768px) {
    .norma-img {
        height: 50px;
    }

    .footer-normas {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-section:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.nav-contact .contact-btn,
.nav-contact .phone-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nav-container {
        gap: .6rem;
        padding: 0.6rem 0.75rem;
    }

    .nav-logo .logo {
        height: 42px;
    }

    .nav-contact .contact-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.9rem;
        line-height: 1;
    }
}

@media (max-width: 480px) {
    .nav-container {
        gap: .5rem;
        padding: 0.55rem 0.6rem;
    }

    .nav-logo .logo {
        height: 38px;
    }

    .nav-contact .contact-btn {
        padding: 0.38rem 0.75rem;
        font-size: clamp(12px, 3.6vw, 13.5px);
        gap: .4rem;
    }
}

@media (max-width: 360px) {
    .nav-container {
        gap: .4rem;
        padding: 0.5rem 0.55rem;
    }

    .nav-logo .logo {
        height: 36px;
    }

    .nav-contact .contact-btn {
        padding: 0.34rem 0.65rem;
        font-size: 12px;
    }
}

@media (max-width: 280px) {
    .nav-contact {
        display: none !important;
    }

    .hamburger {
        justify-self: end;
    }
}