/* ------------------------------------
* ARV Forros e Divisórias Design System
* ------------------------------------ */
:root {
    /* Colors derived from Logo */
    --blue-dark: #2b4865;
    --blue-primary: #1872a6;
    --blue-light: #4ba3d7;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --whatsapp: #25D366;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 15px 30px rgba(24, 114, 166, 0.15);
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Rounded corners */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--blue-primary);
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 100px 0;
}

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

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

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(24, 114, 166, 0.1);
    color: var(--blue-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--blue-dark);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

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

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

.btn-primary:hover {
    background-color: var(--blue-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--blue-dark);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--blue-light);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

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

.portfolio .btn-outline {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}

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

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

.btn-white:hover {
    background-color: var(--gray-100);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-base);
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

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

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

.logo-house {
    color: var(--blue-primary);
    font-size: 2.2rem;
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-arv {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--white);
    line-height: 1;
    letter-spacing: 1px;
    transition: var(--transition-base);
}

.logo-sub {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--white);
    transition: var(--transition-base);
}

.header-logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition-base);
}

.header.scrolled .logo-arv { color: var(--blue-dark); }
.header.scrolled .logo-sub { color: var(--blue-primary); }
.header.scrolled .header-logo-img { height: 50px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-list a {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.header.scrolled .nav-list a {
    color: var(--gray-800);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue-primary);
    transition: var(--transition-base);
}

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

.header.scrolled .nav-list a:hover {
    color: var(--blue-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
}

.header.scrolled .mobile-menu-btn {
    color: var(--blue-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 72, 101, 0.9) 0%, rgba(24, 114, 166, 0.7) 100%);
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

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

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: var(--blue-primary);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.features-list {
    margin-top: 2rem;
    display: grid;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-item i {
    font-size: 2rem;
    color: var(--blue-primary);
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--gray-600);
}

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

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--blue-primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(24, 114, 166, 0.1);
    color: var(--blue-primary);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background-color: var(--blue-primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

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

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

/* Custom class for the Drywall item */
.drywall-item img {
    object-position: center top;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 72, 101, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-overlay h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    color: var(--blue-light);
    font-weight: 500;
}

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

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

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
    padding: 80px 0;
    color: var(--white);
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(24, 114, 166, 0.1);
    line-height: 1;
}

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

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--blue-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.testimonial-author span {
    color: var(--blue-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--blue-dark);
    color: var(--gray-200);
    padding-top: 80px;
}

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

.footer-brand p {
    margin-bottom: 24px;
    font-size: 1rem;
    opacity: 0.8;
}

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

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

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

.footer h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

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

.footer-links ul li a {
    color: var(--gray-200);
    opacity: 0.8;
}

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

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.contact-list li i {
    color: var(--blue-light);
    font-size: 1.25rem;
    margin-top: 2px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 24px 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: var(--white);
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animations Triggered via JS */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.in-view {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .about-wrapper { grid-template-columns: 1fr; }
    .about-image { order: 2; margin-top: 30px; }
    .about-content { order: 1; }
    .hero-title { font-size: 3.5rem; }
    .cta-container { flex-direction: column; text-align: center; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
        padding: 40px;
    }
    .nav-menu.active { right: 0; }
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .nav-list a { color: var(--blue-dark) !important; font-size: 1.25rem; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .footer-container { grid-template-columns: 1fr; }
    .section-padding { padding: 60px 0; }
}
