/* ============================================================
   OPEN SEA INDUSTRIA - CORES EXTRAÍDAS DO LOGO OFICIAL
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #01165a;
    --primary-color: #0044c8;
    --primary-light: #3f8ef5;
    --accent-color: #00b3a4;
    --secondary-color: #6c757d;
    --dark-color: #050b26;
    --light-color: #f4f6fb;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    width: 100%;
    padding-top: 76px;
    background-color: #ffffff;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.text-primary { color: var(--primary-color) !important; }
.text-navy { color: var(--primary-dark) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-navy { background-color: var(--primary-dark) !important; }
.bg-soft { background-color: var(--light-color) !important; }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.btn-accent:hover {
    background-color: #009488;
    border-color: #009488;
    color: #fff;
}

.badge.bg-primary { background-color: var(--primary-color) !important; }
.badge.bg-accent { background-color: var(--accent-color) !important; }

/* ============================================================
   BOTÃO VOLTAR AO TOPO
   ============================================================ */
.btn-topo {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, visibility 0.3s;
    z-index: 1040;
}

.btn-topo.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-topo:hover {
    background-color: var(--accent-color);
    color: #fff;
}

@media (max-width: 767px) {
    .btn-topo {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ============================================================
   MENU FIXO
   ============================================================ */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: all var(--transition-speed) ease;
    background: rgba(1, 22, 90, 0.92);
    max-width: 100vw;
    overflow: hidden;
}

.header-fixed.scrolled {
    background: rgba(1, 22, 90, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-fixed .navbar {
    padding: 12px 0;
    transition: padding var(--transition-speed) ease;
}

.header-fixed.scrolled .navbar {
    padding: 6px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

.logo-img {
    max-height: 76px; /*46px;*/
    width: auto;
    background: #fff;
    border-radius: 18px; /*8px;*/
    padding: 1px 2px;
    /*padding: 3px 6px;*/
}

.brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-text small {
    display: block;
    font-weight: 400;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 10px 16px;
    transition: color var(--transition-speed);
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-light);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: width var(--transition-speed);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    flex-shrink: 0;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(63, 142, 245, 0.5);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    min-height: 92vh;
    background-image: url("../img/asfalto.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    width: 100%;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(1, 22, 90, 0.88) 0%, rgba(0, 68, 200, 0.82) 60%, rgba(0, 68, 200, 0.55) 130%),
        radial-gradient(circle at 85% 20%, rgba(255,255,255,0.12) 0%, transparent 45%),
        radial-gradient(circle at 10% 85%, rgba(0,179,164,0.25) 0%, transparent 50%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    letter-spacing: -1.5px;
    color: #fff;
    word-break: break-word;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.88);
}

.hero-stats {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 40px;
    padding-top: 24px;
}

.hero-stats .number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.hero-stats .label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   SEÇÕES
   ============================================================ */
section {
    padding: 90px 0;
    width: 100%;
    overflow: hidden;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(0, 68, 200, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ============================================================
   MOSAICO DE FOTOS - SEÇÃO SOBRE
   ============================================================ */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-template-areas:
        "main   main   top    top"
        "main   main   mid1   mid2"
        "main   main   bot1   bot2"
        "extra1 extra1 extra2 extra2";
    gap: 14px;
    height: 640px;
}

.g-main   { grid-area: main; }
.g-top    { grid-area: top; }
.g-mid1   { grid-area: mid1; }
.g-mid2   { grid-area: mid2; }
.g-bot1   { grid-area: bot1; }
.g-bot2   { grid-area: bot2; }
.g-extra1 { grid-area: extra1; }
.g-extra2 { grid-area: extra2; }

.about-gallery .g-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(1, 22, 90, 0.18);
}

.about-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.5s ease;
}

.about-gallery .g-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 991.98px) {
    .about-gallery {
        height: 560px;
    }
}

@media (max-width: 575.98px) {
    .about-gallery {
        height: 430px;
        gap: 10px;
    }
    .about-gallery .g-item { border-radius: 12px; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(1, 22, 90, 0.92);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox-overlay.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    cursor: zoom-out;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.show .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 575.98px) {
    .lightbox-img { border-radius: 12px; }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ============================================================
   CARDS
   ============================================================ */
.hover-card {
    transition: all var(--transition-speed) ease;
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid #edf0f7;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(1, 22, 90, 0.15) !important;
    border-color: transparent;
}

.hover-card .icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 68, 200, 0.08);
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.hover-card .card-title {
    color: var(--primary-dark);
}

.diferencial-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #edf0f7;
    height: 100%;
    transition: all var(--transition-speed) ease;
}

.diferencial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(1, 22, 90, 0.12);
}

.diferencial-card .icon-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: #fff;
    font-size: 2rem;
}

/* ============================================================
   CITAÇÃO / MISSÃO
   ============================================================ */
.mission-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    text-align: center;
}

.mission-section blockquote {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================================
   FORMULÁRIO DE CONTATO
   ============================================================ */
#contactForm .form-control,
#contactForm .form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    transition: all var(--transition-speed);
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
}

#contactForm .form-control:focus,
#contactForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 68, 200, 0.15);
}

#contactForm .form-control.is-invalid,
#contactForm .form-select.is-invalid {
    border-color: #dc3545;
}

#contactForm .invalid-feedback {
    display: none;
    font-size: 0.875rem;
    margin-top: 5px;
    color: #dc3545;
}

#contactForm .form-control.is-invalid ~ .invalid-feedback,
#contactForm .form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

#contactForm .btn-primary {
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 600;
    transition: all var(--transition-speed);
    width: 100%;
}

#contactForm .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 68, 200, 0.35);
}

#contadorCaracteres {
    font-size: 0.8rem;
    transition: color var(--transition-speed);
}
#contadorCaracteres.excedido {
    color: #dc3545 !important;
}

.contact-info-card {
    background: var(--primary-dark);
    color: #fff;
    border-radius: 20px;
    padding: 40px;
}

.contact-info-card .info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    color: inherit;
    text-decoration: none;
    padding: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-info-card a.info-item:hover,
.contact-info-card a.info-item:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    color: inherit;
}

.contact-info-card .info-item i {
    font-size: 1.4rem;
    color: var(--primary-light);
}

.info-item-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 4px;
}

.info-item-cta i {
    font-size: 0.75rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}
.modal-header { border-bottom: none; padding: 25px 30px 0 30px; }
.modal-body { padding: 20px 30px 30px 30px; }
.modal-footer { border-top: none; padding: 0 30px 30px 30px; }

/* ============================================================
   RODAPÉ
   ============================================================ */
footer {
    background: var(--dark-color) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition-speed);
}
footer a:hover {
    color: var(--primary-light);
}

.btn-home {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}
.btn-home:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 767px) {
    body { padding-top: 64px; }
    .hero-section { min-height: 88vh; padding: 90px 0 40px; }
    .hero-section h1 { font-size: 2.3rem !important; }
    .hero-section .lead { font-size: 1rem !important; }
    section { padding: 48px 0; }
    .display-4 { font-size: 1.8rem !important; }
    .display-5 { font-size: 1.3rem !important; }
    .hover-card, .diferencial-card { margin-bottom: 16px; }
    .mission-section blockquote { font-size: 1.15rem; }
    .contact-info-card { padding: 26px; }
    .navbar-collapse {
        background: rgba(1, 22, 90, 0.98);
        backdrop-filter: blur(10px);
        padding: 15px 0;
        border-radius: 0 0 16px 16px;
        margin-top: 10px;
    }
    .navbar-nav .nav-link { padding: 12px 20px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .navbar-nav .nav-link::after { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section h1 { font-size: 3.2rem !important; }
    section { padding: 64px 0; }
}

@media (min-width: 1025px) {
    section { padding: 100px 0; }
    .hero-section h1 { font-size: 4.6rem !important; }
    .navbar-brand { font-size: 1.5rem; }
}
