/* 
  Midas Têxtil Stylesheet 
  Base Layout: Arvobras.com.br
  Color Scheme: Earthy Premium (Sand/Gold & Deep Ash)
*/

:root {
    --primary: #0f1c3f; /* Dark intense blue */
    --secondary: #21408a; /* Bright corporate blue */
    --secondary-hover: #172c61;
    --accent: #f4f6f9; /* Off white / ice */
    --text-main: #111111;
    --text-muted: #666666;
    --bg-light: #f4f6f9;
    --border: #e0e0e0;
    --white: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section-padding { padding: 6rem 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-center; }

.section-tag {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
    border: 2px solid transparent;
}
.btn i { margin-left: 0.5rem; font-size: 1.2rem; }

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(180, 141, 93, 0.2);
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 1rem 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-box {
    display: flex;
    flex-direction: column;
}
.header-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}
.logo-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.5px;
}
.logo-title span { font-weight: 300; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.nav-list {
    display: flex;
    gap: 2rem;
}
.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    position: relative;
    font-family: var(--font-heading);
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}
.nav-list a:hover::after { width: 100%; }

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    position: relative;
    padding-top: 5rem;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Abstract elegant placeholder for hero */
    background: linear-gradient(135deg, rgba(15, 28, 63, 0.9) 0%, rgba(15, 28, 63, 0.7) 100%),
                url('hero.png') center/cover no-repeat;
    z-index: 1;
}
.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    color: var(--white);
}
.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.hero-title span { color: var(--secondary); }
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.hero-actions .btn { padding: 1rem 2rem; font-size: 1.1rem; }

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
/* Carousel Container */
.carousel-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--bg-light);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
    z-index: 10;
}
.carousel-btn:hover { background: var(--secondary); color: white; }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

.features-list { margin: 2.5rem 0; }
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.feature-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 0.2rem;
}
.feature-item h4 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.feature-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Catalog Section */
.catalog-section { text-align: center; }

/* Tabs */
.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}
.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}
.tab-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.tab-btn.active {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

/* Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    opacity: 1;
    transition: opacity 0.4s ease;
    text-align: left;
}
.catalog-grid.fading { opacity: 0; }

.catalog-item {
    cursor: pointer;
    group: item;
}

.item-img-container {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
}

.dynamic-texture {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.catalog-item:hover .dynamic-texture {
    transform: scale(1.08) !important;
}

.item-meta {
    display: flex;
    flex-direction: column;
}
.item-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.item-ref {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Instagram Stream */
.stream-wrapper {
    background-color: var(--white);
    padding: 5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}
.stream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}
.stream-info { display: flex; align-items: center; gap: 1.5rem; }
.stream-icon {
    width: 60px; height: 60px;
    border-radius: 12px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
}
.stream-info h3 { font-size: 1.8rem; margin-bottom: 0.2rem; }
.stream-info p { color: var(--text-muted); }

.stream-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.stream-post {
    aspect-ratio: 1;
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    /* Placeholder fallback */
    background: linear-gradient(45deg, #e0e0e0, #f4f6f9);
}
.stream-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.stream-overlay {
    position: absolute; inset: 0;
    background-color: rgba(15, 28, 63, 0.7);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: white; opacity: 0; transition: opacity 0.3s ease;
}
.stream-post:hover img { transform: scale(1.1); }
.stream-post:hover .stream-overlay { opacity: 1; }
.stream-overlay i { font-size: 2rem; margin-bottom: 0.5rem; transform: translateY(10px); transition: 0.3s ease; }
.stream-overlay span { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; transform: translateY(10px); transition: 0.3s ease 0.1s; }
.stream-post:hover .stream-overlay i, .stream-post:hover .stream-overlay span { transform: translateY(0); }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.tm-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}
.tm-stars { color: var(--secondary); margin-bottom: 1.5rem; font-size: 1.2rem; }
.tm-text { font-style: italic; color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.tm-author { display: flex; align-items: center; gap: 1rem; }
.tm-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; font-family: var(--font-heading);
}
.tm-name h4 { font-size: 1.1rem; margin-bottom: 0.1rem; }
.tm-name span { font-size: 0.85rem; color: var(--text-muted); }

/* Custom CTA Banner */
.cta-banner {
    background-color: var(--primary);
    padding: 5rem 0;
    text-align: center;
    color: white;
}
.cta-banner h2 { color: white; font-size: 2.5rem; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2.5rem; }

/* Footer */
.footer {
    background-color: #0a132b;
    color: rgba(255,255,255,0.7);
    padding-top: 5rem;
}
.footer h3 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-brand .logo-title { color: white; margin-bottom: 1.5rem; }
.footer-brand p { margin-bottom: 2rem; max-width: 300px; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a {
    width: 40px; height: 40px; border-radius: 4px;
    background-color: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; transition: var(--transition);
}
.social-icons a:hover { background-color: var(--secondary); transform: translateY(-3px); }

.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul li a:hover { color: white; padding-left: 5px; }

.footer-contact ul li {
    display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem;
}
.footer-contact ul li i { color: var(--secondary); font-size: 1.2rem; margin-top: 0.2rem; }

.footer-bottom {
    background-color: #070d1d;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* Responsive */
@media (max-width: 992px) {
    .about-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .carousel-container { max-width: 500px; margin: 0 auto; margin-bottom: 2rem; }
    
    .stream-header { flex-direction: column; text-align: center; gap: 1.5rem; }
    .stream-grid { grid-template-columns: repeat(3, 1fr); }
    
    .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-actions { flex-direction: column; }
    .header { padding: 1rem 0; }
    
    .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stream-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}
