/* =========================================
   VARIABLES & DESIGN TOKENS (Minimalist Dark Red)
   ========================================= */
:root {
    --bg-main: #6b1712;
    --bg-darker: #5a120e;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.15);
    
    --font-main: 'Inter', sans-serif;
    
    --space-sm: 1rem;
    --space-md: 2.5rem;
    --space-lg: 5rem;
    --space-xl: 8rem;
    
    --trans-fast: 0.2s ease;
    --trans-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.text-large {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }

/* =========================================
   LAYOUT UTILS
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-lg) 0;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.bg-darker {
    background-color: var(--bg-darker);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* =========================================
   BUTTONS & LINKS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-main);
}

.btn-primary:hover {
    background-color: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.link-arrow:hover {
    border-bottom-color: var(--text-main);
    gap: 0.5rem;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    padding: 1rem 2rem;
    z-index: 100;
    background-color: rgba(107, 23, 18, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transition: all var(--trans-fast);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.header.scrolled {
    padding: 0.8rem 2rem;
    background-color: rgba(107, 23, 18, 0.6);
    border-color: rgba(255, 255, 255, 0.25);
}

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

.logo img {
    height: 55px;
    display: block;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

.nav a:hover {
    opacity: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--text-main);
    transition: var(--trans-fast);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-main);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans-fast);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 500;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.8;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-image: linear-gradient(rgba(107, 23, 18, 0.4), rgba(107, 23, 18, 0.8));
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.justify-center { justify-content: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* =========================================
   ALERT BAR
   ========================================= */
.alert-bar {
    background-color: var(--bg-darker);
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

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

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pulse {
    display: block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: var(--text-main);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.alert-link {
    font-weight: 500;
    font-size: 0.9rem;
}

/* =========================================
   CARDS (O que fazemos)
   ========================================= */
.card {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--trans-slow);
    background-color: rgba(255,255,255,0.01);
}

.card:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: var(--text-main);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   TAGS (Para quem)
   ========================================= */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tag {
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all var(--trans-fast);
    cursor: default;
}

.tag:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* =========================================
   PROJECTS
   ========================================= */
.project-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.project-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-visual {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
}

.project-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* =========================================
   TEAM
   ========================================= */
.team-member {
    text-align: center;
}

.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: rgba(255,255,255,0.05);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   SERVICES CARDS (Expandable)
   ========================================= */
.service-card {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: rgba(255,255,255,0.01);
    transition: all var(--trans-slow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-icon {
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-short {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

.service-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.details-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.details-inner p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.service-card:hover {
    background-color: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* On desktop hover, or touch devices active state, expand the grid */
.service-card:hover .service-details,
.service-card:focus-within .service-details {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 0.5rem;
}

/* =========================================
   TEAM SHOWCASE (Página da Equipe)
   ========================================= */
.team-page-header {
    padding-top: 12rem;
    padding-bottom: 2rem;
}

.team-block {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 6rem;
}

.team-block:last-child {
    margin-bottom: 0;
}

.team-block.reverse {
    flex-direction: row-reverse;
}

.team-block-img {
    flex: 1;
    aspect-ratio: 4/5;
    background-color: rgba(255,255,255,0.02);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-block-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-block-text {
    flex: 1;
}

.team-block-text h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-role-large {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.team-bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

/* =========================================
   VALUES LIST
   ========================================= */
.values-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.values-list h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.values-list p {
    color: var(--text-muted);
}

/* =========================================
   CTA
   ========================================= */
.cta-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: var(--space-md) 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   ANIMATIONS (Scroll Reveal)
   ========================================= */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--trans-slow), transform var(--trans-slow);
}

.animate-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .split-layout, .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    
    .project-item { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none !important; }
    .menu-toggle { display: flex; }
    
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    
    .grid-3 { grid-template-columns: 1fr; }
    
    .hero { padding-top: 8rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    
    .alert-container { flex-direction: column; gap: 1rem; text-align: center; }
    
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-links { flex-direction: column; gap: 1rem; }
}

/* =========================================
   DROPDOWN MENU
   ========================================= */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: rgba(107, 23, 18, 0.95); backdrop-filter: blur(10px);
    min-width: 240px; box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px; z-index: 1000; border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden; padding: 0.5rem 0;
}
.dropdown-menu a {
    color: var(--text-main) !important; padding: 12px 20px !important;
    text-decoration: none; display: block; font-size: 0.9rem; font-weight: 400 !important;
    transition: background-color var(--trans-fast);
}
.dropdown-menu a:hover { background-color: rgba(255, 255, 255, 0.1); }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-toggle .arrow { font-size: 0.7rem; margin-left: 4px; vertical-align: middle; }
.mobile-sub-menu { padding-left: 1.5rem; display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.mobile-sub-menu a { font-size: 0.9rem; opacity: 0.8; text-decoration: none; color: var(--text-main); }

/* =========================================
   UTILITIES & FLIPBOOK
   ========================================= */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.book-container { display: flex; justify-content: center; align-items: center; margin: 0 auto; max-width: 100%; perspective: 1000px; }
.flipbook { box-shadow: 0 0 20px rgba(0,0,0,0.5); background-color: transparent; }
.flipbook .page { background-color: #fdfdfd; overflow: hidden; box-shadow: inset -1px 0 5px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; }
.flipbook .page img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   DEPOIMENTOS & BOTÕES DE CONTATO
   ========================================= */
.testimonials-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .testimonials-container {
        grid-template-columns: 1fr;
    }
}

.testimonial-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.testimonial-form .form-group {
    margin-bottom: 1rem;
}

.testimonial-form .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: inherit;
}

.testimonial-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.carousel-viewport {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 100%; /* Important for sliding */
    box-sizing: border-box;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-main);
}

.testimonial-author .author-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author .author-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.carousel-controls {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.carousel-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
