/* 
    D'Mello Comunicação Visual - Style System
    Colors: Dark Blue, White, Light Grey, Silver
*/

:root {
    --primary: #0a192f; /* Dark Blue */
    --primary-light: #172a45;
    --secondary: #007bff; /* Vibrant Blue for accents */
    --accent: #ccd6f6; /* Silver/Light Blueish Grey */
    --text-main: #333333;
    --text-muted: #8892b0;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --silver: #e2e8f0;
    --whatsapp: #25d366;
    
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.1);
    --container-width: 1200px;
}

/* Reset or Basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.2rem; position: relative; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.highlight {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    gap: 10px;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Header */
header {
    height: 140px; /* Increased to fit larger logo slightly better */
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    height: 100px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--silver);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo-img {
    height: 200px; /* Increased size significantly (approx 3x or large enough) */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .logo-img {
    height: 120px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--primary);
}

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

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 123, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(10, 25, 47, 0.05) 0px, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230a192f' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 10; /* Ensures it stays above the hero-image and floating icons */
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

.hero-image {
    position: relative;
}

.hero-visual {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 30px 60px rgba(10, 25, 47, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blobify 10s infinite ease-in-out;
    position: relative;
}

.hero-logo {
    width: 60%;
    height: auto;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@keyframes blobify {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 6s infinite ease-in-out;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.icon-1 { top: 5%; right: 5%; animation-delay: 0s; }
.icon-2 { bottom: 10%; left: 0%; animation-delay: 1s; }
.icon-3 { top: 50%; right: -10%; animation-delay: 2s; }

/* Highlights Bar */
.highlights {
    padding: 40px 0;
    background: var(--primary);
    color: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
}

.highlights .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-item .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.highlight-item .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Sections Global */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.check-list {
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-weight: 500;
}

.check-list i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.image-placeholder {
    background: linear-gradient(45deg, var(--silver), var(--white));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.main-about-img {
    width: 100%;
    aspect-ratio: 4/3;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

/* Services */
.services {
    background-color: var(--bg-light);
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--secondary);
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    aspect-ratio: 1/1;
    background: var(--silver);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-overlay span {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

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

/* Testimonials */
.testimonials {
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.stars {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.client-info strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.differentials {
    background-color: var(--primary);
    color: var(--white);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.diff-item i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.diff-item h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.diff-item p {
    opacity: 0.8;
}

/* CTA */
.cta {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://images.unsplash.com/photo-1572044162444-ad60f128bde7?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.cta h2 {
    color: var(--white);
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    text-decoration: none; /* Correcting link style */
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
}

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

.info-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.contact-form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
    border: 1px solid var(--silver);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary);
}

input, select, textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--silver);
    border-radius: 8px;
    background: var(--bg-light);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Location Section */
.location {
    background-color: #f8fafc;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.matriz-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.location-pin {
    font-size: 2.5rem;
    color: var(--secondary);
}

.matriz-header h3 {
    font-size: 2rem;
    color: var(--primary);
    margin: 0;
}

.address-details {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.address-details li {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-details li i {
    color: var(--secondary);
    width: 20px;
}

.location-map {
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.location-map iframe {
    height: 400px;
}

/* Responsive location */
@media (max-width: 992px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 25px;
    }
    
    .location-map iframe {
        height: 300px;
    }
}

/* Footer */
footer {
    background-color: var(--bg-light);
    padding: 80px 0 0;
    border-top: 1px solid var(--silver);
}

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

.footer-logo {
    max-width: 170px;
    height: auto;
    margin-bottom: 25px;
}

.footer-sidebar-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.footer-sidebar-content p {
    flex: 1;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact {
    flex: 1.2;
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--secondary);
    width: 16px;
}

/* Footer Responsive adjustments */
@media (max-width: 992px) {
    .footer-sidebar-content {
        flex-direction: column;
        gap: 20px;
    }
    
    footer .container {
        flex-direction: column;
        gap: 40px;
    }
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--silver);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-links h4 {
    margin-bottom: 25px;
}

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

.footer-links a {
    color: var(--text-muted);
}

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

.footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid var(--silver);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Fixed Instagram */
.instagram-fixed {
    position: fixed;
    bottom: 105px; /* Above WhatsApp */
    right: 30px;
    width: 65px;
    height: 65px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(214, 36, 159, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.instagram-fixed:hover {
    transform: scale(1.1);
}

.instagram-fixed:hover .tooltip {
    opacity: 1;
}

/* Fixed WhatsApp */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    right: 80px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-fixed:hover .tooltip {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

.testimonials-actions {
    margin-top: 40px;
    text-align: center;
}

/* Rating Input */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
    transition: var(--transition);
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #ffc107;
}

.image-preview {
    margin-top: 10px;
    max-height: 150px;
    overflow: hidden;
    border-radius: 8px;
    display: none;
}

.image-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 2.5rem; }
    .hero-btns { justify-content: center; }
    .hero-image { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2000;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .nav-menu ul li {
        margin: 15px 0;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle { 
        display: block; 
        position: relative;
        z-index: 2001;
    }
    
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    footer .container { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    .highlights .container { flex-direction: column; gap: 30px; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .cta h2 { font-size: 2.2rem; }
    .diff-grid { grid-template-columns: 1fr; }
}
