/* 
 * JVS Calderaria - Custom Stylesheet (FULL RESPONSIVE & REFINED)
 */

:root {
    --background: #0a0a0b;
    --foreground: #f8fafc;
    --card: #141416;
    --muted: #1e1e22;
    --muted-foreground: #94a3b8;
    --accent: #2D9B9E;
    --accent-foreground: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --primary: #1B5E75;
    --radius: 0.65rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (max-width: 768px) {
    html { font-size: 14px; }
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-x-10 {column-gap: 2.5rem;}
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.grid {
    display: grid;
    gap: 1.5rem; /* Espaço entre os cards */
    width: 100%;
    justify-content: center; /* Centraliza o grupo de cards se sobrarem espaços */
}
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
@media (max-width: 768px) {
    .py-24 { padding-top: 4rem; padding-bottom: 4rem; }
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }

.space-y-6 > * + * { margin-top: 1.5rem; }

/* Navigation */
nav {
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    height: 5rem;
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .nav-container { height: 4.5rem; }
    .nav-links { display: none; }
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--background));
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(45, 155, 158, 0.1);
    border: 1px solid rgba(45, 155, 158, 0.2);
    border-radius: 9999px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: clamp(2.25rem, 7vw, 4.5rem);
    margin-bottom: 1.5rem;
    max-width: 20ch;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    max-width: 45ch;
}

@media (max-width: 768px) {
    .hero { text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero .flex { justify-content: center; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
    font-size: 0.9375rem;
}

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

.btn-primary:hover {
    background: #258184;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px rgba(45, 155, 158, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    .btn { width: 100%; }
}

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

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

/* Services Section */
#servicos .container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
}

#servicos .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); 
    gap: 2rem;
    justify-content: center;
}


.service-card {
    width: 100%; 
    min-width: 0; 
    display: flex;
    flex-direction: column;
    height: 100%; 
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(45, 155, 158, 0.1);
    border: 1px solid rgba(45, 155, 158, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(45, 155, 158, 0.1);
    border: 1px solid rgba(45, 155, 158, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
}

/* Product Cards */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.product-img {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-info p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85em;
    margin-bottom: 1rem;
}

.highlight i {
    color: var(--accent);
    width: 30px;  
    height: 30px; 
    margin-top: 3px; 
    flex-shrink: 0;
}

.highlight svg {
    color: var(--accent);
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-top: 3px;
}

.highlight .lucide {
    width: 30px;
    height: 30px;
}

/* Portfolio Section */
.portfolio-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* About Section */
.about-box {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .about-box { margin: 0 auto 3rem; }
}

.about-logo {
    height: clamp(60px, 10vw, 100px);
    width: auto;
    opacity: 0.9;
}

.about-history {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 155, 158, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(45, 155, 158, 0.1);
    border: 1px solid rgba(45, 155, 158, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

.contact-item a {
    color: var(--accent);
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #258184;
}

.map-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 2rem;
}

/* Testimonials */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.testimonial-text {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.9375rem;
}

.testimonial-role {
    color: var(--accent);
    font-size: 0.8125rem;
}

/* Client Logos */
.client-logo {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: all 0.3s ease;
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    opacity: 0.8;
}

.client-logo:hover img {
    opacity: 1;
}

/* Footer & CTA */
.cta-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
    background: radial-gradient(circle at center, rgba(45, 155, 158, 0.05) 0%, transparent 70%);
}

footer {
    padding: 5rem 0 3rem;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .footer-grid .flex { justify-content: center; }
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-col ul li {
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.footer-col ul li a {
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    padding: clamp(1.5rem, 5vw, 3rem);
}

.close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: var(--muted-foreground);
    cursor: pointer;
    z-index: 10;
}

.modal-content-flex {
    display: flex;
    gap: 3rem;
}

@media (max-width: 768px) {
    .modal-content-flex { flex-direction: column; gap: 2rem; }
    .modal-img { max-width: 100% !important; margin: 0 auto; }
}

.modal-img {
    width: 100%;
    max-width: 340px;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

@media (max-width: 480px) {
    .specs-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.spec-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.625rem;
}

.spec-label {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-weight: 600;
    color: white;
    font-size: 0.9375rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.gradient-animated {
    background: linear-gradient(-45deg, #1B5E75, #0F3A47, #2D9B9E, #1B5E75);
    background-size: 400% 400%;
    animation: gradient-shift 12s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 480px) {
    .btn { width: 100%; }
    nav .btn { display: none; }
}
