:root {
    /* Color Palette */
    --primary-color: #062650; /* Deep Navy Blue */
    --secondary-color: #036a8b; /* Medical Blue */
    --accent-color: #c5994f; /* Bright Cyan/Light Blue */
    --text-dark: #1f2937;
    --text-body: #4b5563;
    --text-light: #9ca3af;
    --bg-main: #ffffff;
    --bg-light: #f3f4f6;
    --bg-alt: #eef2f6;
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}



.splash-content {
    position: relative;
    width: 1000px;
    height: 333px;
    display: flex;
    align-items: center;
}

.logo-reveal-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.splash-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reveal-mask {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    animation: revealLogo 2s ease-in-out forwards;
    animation-delay: 0.5s;
}

.splash-feather {
    position: absolute;
    width: 75px;
    height: auto;
    top: 60px;
    left: 0px;
    z-index: 2;
    animation: moveFeather 2s ease-in-out forwards;
    animation-delay: 0.5s;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}

@keyframes revealLogo {
    0% { width: 100%; }
    100% { width: 0%; }
}

@keyframes moveFeather {
    0% { 
        left: 0px; 
        transform: rotate(-20deg) translateY(0);
    }
    25% { transform: rotate(-10deg) translateY(-25px); }
    50% { transform: rotate(-30deg) translateY(10px); }
    75% { transform: rotate(-15deg) translateY(-5px); }
    100% { 
        left: 100%; 
        transform: rotate(-20deg) translateY(0);
        opacity: 0;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-main);
    color: var(--text-body);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header.center {
    text-align: center;
}

.title-feather {
    width: 40px;
    height: auto;
    margin-bottom: 5px;
    opacity: 0.9;
}

.section-title {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    border-radius: 0;
}

.section-title.var-1::after {
    width: 40px;
}

.section-title.var-3 {
    flex-direction: row;
    gap: 15px;
}

.section-title.var-3 .title-feather {
    margin-bottom: 0;
}

.section-title.var-3::after {
    display: none;
}

.section-header.center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 700px;
    margin-top: 20px;
}

.section-header.center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background-color: var(--bg-light);
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(3, 106, 139, 0.39);
}

.btn-primary:hover {
    background-color: #025773; /* slightly darker secondary */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 106, 139, 0.23);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(197, 153, 79, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .nav-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transform: scale(3.0) translateY(1px);
    transform-origin: left center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

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

.nav-btn {
    padding: 10px 24px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #e2eff9 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background-color: rgba(3, 106, 139, 0.3);
    animation: float 10s ease-in-out infinite alternate;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background-color: rgba(6, 38, 80, 0.2);
    animation: float 12s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

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

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(197, 153, 79, 0.1);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(197, 153, 79, 0.3);
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Sobre Section */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: stretch;
}

.sobre-grid.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.sobre-grid.reverse .sobre-img-deco {
    left: auto;
    right: -8px;
    transform: rotate(70deg) scaleX(-1);
}



.sobre-image-wrapper {
    position: relative;
    border-radius: 16px;
    height: 100%;
}

.sobre-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    object-fit: cover;
    aspect-ratio: auto;
}

.sobre-img-deco {
    position: absolute;
    bottom: 11px;
    left: -8px;
    width: 60px;
    height: auto;
    z-index: 3;
    transform: rotate(-70deg);
}

.sobre-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.sobre-destaque {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.destaque-card {
    background-color: var(--bg-alt);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.destaque-card .icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.destaque-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mvv-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mvv-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.mvv-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.principios-card ul {
    display: inline-block;
    text-align: left;
}

.principios-card ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.principios-card ul li i {
    color: var(--accent-color);
    margin-top: 5px;
}

/* Serviços Section */
.servicos {
    background: linear-gradient(rgba(248, 250, 255, 0.75), rgba(248, 250, 255, 0.82)), url('assets/bg-servicos.png') center/cover no-repeat;
    background-attachment: fixed;
}

.servicos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.servico-card {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent-color);
}

.servico-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    min-height: 85px;
}

.servico-icon {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.servico-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.servico-desc {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 500;
}

.servico-lista li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.servico-lista li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Orçamento Section */
.orcamento-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.contato-direto {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.contato-item i {
    width: 40px;
    height: 40px;
    background-color: var(--bg-alt);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.orcamento-form-box {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(3, 106, 139, 0.1);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #fafafa;
}

.checkbox-grid::-webkit-scrollbar {
    width: 6px;
}
.checkbox-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.checkbox-grid::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}
.checkbox-grid::-webkit-scrollbar-thumb:hover {
    background: #a37c3a;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500 !important;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-label:hover {
    background-color: #e2eff9;
}

.checkbox-label input {
    margin-top: 3px;
    width: 14px;
    height: 14px;
    accent-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo .logo-img {
    height: 60px;
    transform: scale(2.5);
    transform-origin: left center;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    margin-top: 30px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-links.social-links-dark a {
    background-color: var(--primary-color);
    color: white;
}

.social-links.social-links-dark a:hover {
    background-color: var(--accent-color);
}

.footer h3 {
    font-family: 'Cinzel', serif;
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact ul li a:hover {
    color: white;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Clientes Section */
.clientes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.cliente-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.cliente-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .sobre-grid,
    .sobre-grid.reverse {
        grid-template-columns: 1fr;
    }
    .sobre-grid.reverse .sobre-image-wrapper {
        order: -1;
    }
    .sobre-image-wrapper {
        height: auto;
    }
    .sobre-img {
        position: relative;
        height: auto;
        aspect-ratio: 4/3;
    }
    .mvv-grid {
        grid-template-columns: 1fr;
    }
    .servico-card {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    .orcamento-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        transition: 0.4s;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        justify-content: center;
        height: 100%;
        gap: 40px;
    }
    
    .hero {
        padding: 150px 0 100px;
        text-align: center;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 15px !important;
    }
    
    .hero-content > img {
        order: -1;
        max-width: 250px !important;
        height: auto !important;
        margin-bottom: 5px;
        align-self: flex-start;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.0rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .title-feather {
        width: 30px;
    }
    
    .servico-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .orcamento-info {
        text-align: center;
    }
    
    .orcamento-info .social-links {
        justify-content: center;
    }
}
