/* Wire Sistemas de Encadernação - Design System v2.0 */
/* Paleta: Azul Escuro #052348 + Laranja #ff6b35 */

:root {
    --primary: #052348;
    --primary-dark: #031a33;
    --accent: #ff6b35;
    --accent-light: #ffb399;
    --white: #ffffff;
    --light-bg: #f5f5f5;
    --gray-text: #666666;
    --dark-text: #333333;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

/* Tipografia */
h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

p {
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 20px;
    }
}

/* Header & Navbar */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
        font-size: 14px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0a3d66 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

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

.hero h1 {
    color: var(--white);
    font-size: 56px;
    margin-bottom: 16px;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin-bottom: 32px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent);
    cursor: pointer;
    font-size: 16px;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent);
}

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

.service-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    padding: 24px 24px 12px;
    margin: 0;
}

.service-card p {
    padding: 0 24px 24px;
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        gap: 24px;
    }
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.team-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .team {
        padding: 60px 0;
    }
    
    .team-gallery {
        grid-template-columns: 1fr;
    }
    
    .team-image {
        height: 250px;
    }
}

/* Clients Section */
.clients {
    padding: 80px 0;
    background-color: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 48px;
    align-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 16px;
    transition: var(--transition);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-logo:hover {
    background-color: #efefef;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .clients {
        padding: 60px 0;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 24px;
    }
    
    .client-logo {
        height: 100px;
    }
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(5, 35, 72, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item-text {
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.gallery-item-text h3 {
    color: var(--white);
    margin-bottom: 8px;
}

.gallery-item-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .gallery {
        padding: 60px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0a3d66 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 24px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-button-secondary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent);
    cursor: pointer;
    font-size: 16px;
}

.cta-button-secondary:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 48px 0 24px;
}

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

.footer-section h4 {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-section a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-content {
        gap: 24px;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-32 {
    margin-top: 32px;
}

.mb-32 {
    margin-bottom: 32px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 0 auto 32px;
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Images */
picture {
    display: block;
}

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

/* Print Styles */
@media print {
    header, footer, .cta-section {
        display: none;
    }
}
