/* ==========================================
   Isadora Carvalho Arquitetura
   Design System & Styles
   ========================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors - Brand Palette */
    --color-primary: #cc8a7a;
    --color-primary-dark: #b87668;
    --color-primary-light: #dba99c;
    --color-secondary: #999b85;
    --color-secondary-dark: #7d7f6d;
    --color-light: #f4efec;
    --color-light-warm: #f9f6f4;
    --color-dark: #6e6b5c;
    --color-dark-deep: #4a483d;
    --color-accent: #d9a066;
    
    /* Neutrals */
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-gray-100: #fafaf9;
    --color-gray-200: #e8e6e3;
    --color-gray-300: #d4d1cc;
    --color-gray-400: #a8a5a0;
    --color-gray-500: #7c7974;
    
    /* Typography */
    --font-display: 'North Carossela', serif;
    --font-body: 'Rotato Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-elegant: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(110, 107, 92, 0.08);
    --shadow-md: 0 8px 24px rgba(110, 107, 92, 0.12);
    --shadow-lg: 0 16px 48px rgba(110, 107, 92, 0.16);
    --shadow-xl: 0 24px 64px rgba(110, 107, 92, 0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-dark-deep);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* ===== Loading Overlay ===== */
.loader-seen .loading-overlay {
    display: none;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.loading-svg {
    display: block;
    width: min(280px, 70vw);
    height: auto;
    color: var(--color-gray-300);
    transition: color 0.6s ease;
}

.loading-svg.final-color {
    color: var(--color-primary);
}

.loading-svg .arch {
    stroke: currentColor;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawArch 2s ease forwards;
}

.loading-svg .arch-1 { animation-delay: 0s; }
.loading-svg .arch-2 { animation-delay: 0.3s; }
.loading-svg .arch-3 { animation-delay: 0.6s; }

.loading-svg .star {
    opacity: 0;
    animation: fadeInStar 0.5s ease forwards 1.5s;
}

@keyframes drawArch {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInStar {
    to { opacity: 1; }
}

.loading-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--color-dark);
    opacity: 0;
    animation: fadeInText 0.6s ease forwards 1s;
}

@keyframes fadeInText {
    to { opacity: 1; }
}

/* ===== Background Arches ===== */
.background-arches {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.arch-bg {
    position: absolute;
    color: var(--color-gray-200);
    opacity: 0.4;
}

.arch-bg-1 {
    width: 40vw;
    height: 60vh;
    top: -10%;
    right: -10%;
    transform: rotate(15deg);
}

.arch-bg-2 {
    width: 30vw;
    height: 50vh;
    bottom: 10%;
    left: -5%;
    transform: rotate(-10deg);
}

.arch-bg-3 {
    width: 25vw;
    height: 40vh;
    top: 40%;
    right: 5%;
    opacity: 0.2;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(244, 239, 236, 0.95);
    backdrop-filter: blur(12px);
    transition: var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    max-width: 1440px;
    margin: 0 auto;
}

/* Logo */
.logo-link {
    display: block;
}

.logo {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
}

.logo-icon {
    width: 30px;
    height: 40px;
    color: var(--color-dark);
    transition: var(--transition-base);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1;
    margin-bottom: 3px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    transition: var(--transition-base);
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray-400);
    transition: var(--transition-base);
}

.logo-link:hover .logo-icon,
.logo-link:hover .logo-text,
.logo-link:hover .logo-subtitle {
    color: var(--color-primary);
}

/* Navigation */
.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-dark);
    position: relative;
    padding: var(--space-xs) 0;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: var(--space-xs);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-light-warm);
    padding: var(--space-lg);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.mobile-nav-link:hover {
    color: var(--color-primary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--color-dark);
    border: 1px solid var(--color-dark);
}

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

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

.btn-secondary:hover {
    background: var(--color-dark-deep);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ===== Section Labels ===== */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: 50px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 1px;
    background: var(--color-primary);
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-title .highlight {
    color: var(--color-primary);
    font-style: italic;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(80px + 6rem) var(--space-lg) var(--space-xl);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1440px) {
    .hero {
        padding: calc(80px + var(--space-sm)) var(--space-lg) var(--space-xl);
    }
}

.hero-text {
    max-width: 600px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-lg);
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--color-primary);
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-gray-500);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Hero Visual */
.hero-visual {
    display: none;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: flex;
    }
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/5;
    overflow: visible;
}

.frame-arch {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--color-primary);
    opacity: 0.5;
    border-radius: 270px 270px 0 0;
    z-index: 0;
    pointer-events: none;
}

.hero-image-clip {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 250px 250px 0 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-elegant);
}

.hero-image-frame:hover .hero-image-clip .hero-image {
    transform: scale(1.05);
}

.hero-image-frame.no-image {
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
}

.hero-image-frame.no-image::after {
    content: '';
    position: absolute;
    inset: 20%;
    border: 1px solid var(--color-primary);
    opacity: 0.5;
    border-radius: 150px 150px 0 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-gray-400);
}

/* Esconde scroll indicator em mobile para não sobrepor botões */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

.scroll-indicator span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Sobre Section ===== */
.sobre {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 1;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .sobre-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.sobre-image-wrapper {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.image-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--color-primary);
    opacity: 0.5;
}

.sobre-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.sobre-image-wrapper.no-image {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
}

.sobre-content {
    max-width: 580px;
}

.sobre-text {
    margin-bottom: var(--space-xl);
}

.sobre-text p {
    color: var(--color-gray-500);
}

.sobre-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gray-500);
    margin-top: var(--space-xs);
}

/* ===== Serviços Section ===== */
.servicos {
    padding: var(--space-3xl) 0;
    background: var(--color-light-warm);
    position: relative;
    z-index: 1;
}

.servicos-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.servicos-header .section-label::before {
    display: none;
}

.servicos-header .section-label {
    padding-left: 0;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.servico-card {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.servico-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--color-primary);
}

.servico-icon svg {
    width: 100%;
    height: 100%;
}

.servico-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.servico-card p {
    color: var(--color-gray-500);
    font-size: 0.95rem;
}

/* ===== Portfolio Section ===== */
.portfolio {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 1;
}

.portfolio-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.portfolio-header .section-label::before {
    display: none;
}

.portfolio-header .section-label {
    padding-left: 0;
}

.portfolio-intro {
    color: var(--color-gray-500);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Portfolio Carousel ===== */
/* ===== Portfolio Carousel ===== */
.portfolio-carousel-wrapper {
    position: relative;
    margin-bottom: var(--space-2xl);
    padding: 0;
}

.portfolio-carousel {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-sm) var(--space-lg);
    justify-content: center;
}

/* Quando há overflow (mais projetos), alinha à esquerda */
.portfolio-carousel.has-overflow {
    justify-content: flex-start;
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: none; /* Hidden by default, shown via JS when needed */
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-gray-500);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    opacity: 0.7;
}

.carousel-nav:hover {
    color: var(--color-primary);
    opacity: 1;
}

.carousel-nav.visible {
    display: flex;
}

.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

@media (max-width: 768px) {
    .portfolio-carousel {
        padding: var(--space-sm);
    }
    .carousel-nav {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    .carousel-prev { left: 2px; }
    .carousel-next { right: 2px; }
}

/* ===== Portfolio Card (Carousel) ===== */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    flex: 0 0 280px;
    height: 200px;
    background: var(--color-gray-100);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Portfolio card image as background div (protected) */
.portfolio-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition-slow);
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Protection layer */
.portfolio-card > .image-protection-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
    background: transparent;
}

.portfolio-card:hover .portfolio-card-image {
    transform: scale(1.08);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 72, 61, 0.95) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-white);
    transform: translateY(10px);
    transition: var(--transition-base);
    line-height: 1.3;
}

.portfolio-card:hover .portfolio-card-title {
    transform: translateY(0);
}

.portfolio-card-category {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-top: 4px;
    transform: translateY(10px);
    transition: var(--transition-base);
    transition-delay: 0.05s;
}

.portfolio-card:hover .portfolio-card-category {
    transform: translateY(0);
}

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

/* ===== Depoimentos Section ===== */
.depoimentos {
    padding: var(--space-3xl) 0;
    background: var(--color-dark);
    position: relative;
    z-index: 1;
}

.depoimentos-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.depoimentos-header .section-label {
    color: var(--color-primary-light);
    padding-left: 0;
}

.depoimentos-header .section-label::before {
    display: none;
}

.depoimentos-header .section-title {
    color: var(--color-white);
}

.depoimentos-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    min-height: 200px;
}

.depoimento-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: var(--transition-slow);
    text-align: center;
}

.depoimento-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.depoimento-card blockquote p {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--color-light);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.depoimento-card cite {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.cite-name {
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.cite-project {
    font-size: 0.85rem;
    color: var(--color-primary-light);
}

.depoimentos-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.dep-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--color-gray-500);
    transition: var(--transition-fast);
}

.dep-nav-btn:hover,
.dep-nav-btn.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* ===== Contato Section ===== */
.contato {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 1;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .contato-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.contato-intro {
    color: var(--color-gray-500);
    margin-bottom: var(--space-xl);
}

.contato-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contato-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-dark);
    font-weight: 500;
}

.contato-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contato-item:hover i {
    transform: scale(1.1);
}

.contato-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-dark-deep);
    padding: var(--space-2xl) 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .footer-brand {
        align-items: flex-start;
    }
}

.footer-logo {
    width: 30px;
    height: 40px;
    color: var(--color-primary);
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-400);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray-500);
    border-radius: var(--radius-full);
    color: var(--color-gray-400);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: var(--transition-base);
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-content {
    width: 100%;
    max-width: 1000px;
    padding: var(--space-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.modal-gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
}

.modal-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-gallery img {
    max-height: 55vh;
    max-width: 85%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}

/* ===== Image Protection & Watermark ===== */
.protected-image-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.protected-image-container img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Modal protected image (using background-image) */
.modal-image-protected {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/10;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-dark);
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Watermark overlay */
.watermark-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 200px,
        rgba(204, 138, 122, 0.03) 200px,
        rgba(204, 138, 122, 0.03) 400px
    );
}

.watermark-logo {
    width: 35%;
    max-width: 300px;
    min-width: 120px;
    height: auto;
    opacity: 0.25;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

/* Multiple watermarks pattern */
.watermark-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9;
    background-image: url('../assets/logo-simbolo.svg');
    background-repeat: repeat;
    background-size: 80px;
    opacity: 0.08;
    transform: rotate(-15deg) scale(1.5);
}

/* Transparent overlay to block right-click on exact image position */
.image-protection-layer {
    position: absolute;
    inset: 0;
    z-index: 11;
    cursor: default;
    /* Adiciona uma imagem transparente de 1x1 pixel para bloquear salvar imagem */
    background-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');
    background-repeat: repeat;
}

/* Disable all pointer events on actual images */
.modal-gallery img:not(.watermark-logo),
.projeto-image-wrapper img,
.portfolio-card img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

.modal-gallery .image-counter {
    color: var(--color-gray-400);
    font-size: 0.9rem;
    margin-top: var(--space-md);
}

/* Modal Gallery Navigation - Desktop */
.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    transition: var(--transition-fast);
    z-index: 1005;
    box-shadow: 0 4px 12px rgba(204, 138, 122, 0.3);
}

.modal-nav:hover {
    background: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(204, 138, 122, 0.4);
}

.modal-nav-prev { left: 24px; }
.modal-nav-next { right: 24px; }

/* Mobile Gallery Navigation - Below content */
@media (max-width: 768px) {
    .modal-gallery-wrapper {
        flex-direction: column;
    }
    
    /* Hide desktop nav buttons on mobile */
    .modal-nav.desktop-only {
        display: none;
    }
    
    .modal-mobile-nav {
        display: flex;
        justify-content: center;
        gap: var(--space-lg);
        margin-top: var(--space-lg);
        padding: var(--space-sm) 0;
    }
    
    .modal-mobile-nav .modal-nav {
        position: relative;
        top: auto;
        transform: none;
        width: 48px;
        height: 48px;
        background: var(--color-primary);
        box-shadow: 0 4px 12px rgba(204, 138, 122, 0.3);
    }
    
    .modal-mobile-nav .modal-nav:hover {
        transform: scale(1.05);
        background: var(--color-primary-dark);
    }
}

@media (min-width: 769px) {
    .modal-mobile-nav {
        display: none;
    }
}

/* Swipe hint for mobile */
.swipe-hint {
    display: none;
    color: var(--color-gray-400);
    font-size: 0.75rem;
    text-align: center;
    margin-top: var(--space-sm);
}

@media (max-width: 768px) {
    .swipe-hint {
        display: block;
    }
}

/* ===== Popup Form ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 1;
    visibility: visible;
    transition: opacity 1.5s cubic-bezier(0.55, 0, 0.1, 1),
                backdrop-filter 1.5s cubic-bezier(0.55, 0, 0.1, 1),
                background 1.5s cubic-bezier(0.55, 0, 0.1, 1);
}

/* Overlay some junto com o envelope */
.popup-overlay.fading {
    background: rgba(26, 26, 26, 0);
    backdrop-filter: blur(0px);
}

.popup-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.popup-content {
    background: var(--color-white);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Ícone de Envelope ===== */
.envelope-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0;
    color: var(--color-primary);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
}

/* ===== Animação de Envelope ===== */

/* Etapa 1: Popup encolhe e mostra envelope */
.popup-content.transform-to-envelope {
    transform: scale(0.25);
    width: 200px;
    max-width: 200px;
    height: 150px;
    max-height: 150px;
    padding: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, #f5e6d3 0%, #e8d4c4 100%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    pointer-events: none;
}

.popup-content.transform-to-envelope > *:not(.envelope-icon-wrapper) {
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-content.transform-to-envelope .envelope-icon-wrapper {
    font-size: 80px;
    opacity: 1;
}

/* Etapa 2: Envelope voa - animação mais suave */
@keyframes flyAway {
    0% {
        transform: scale(0.25) translateX(0) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.08) translateX(500px) translateY(-700px) rotate(-20deg);
        opacity: 0;
    }
}

.popup-content.flying {
    animation: flyAway 1.5s cubic-bezier(0.55, 0, 0.1, 1) forwards;
}

/* Layout expandido para telas grandes */
@media (min-width: 768px) {
    .popup-content {
        max-width: 750px;
        padding: var(--space-2xl) var(--space-3xl);
    }

    /* Linhas com dois campos lado a lado */
    .popup-content .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .popup-content {
        max-width: 850px;
    }
}

.popup-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.popup-close:hover {
    color: var(--color-dark);
}

.popup-header {
    margin-bottom: var(--space-xl);
}

.popup-header h3 {
    font-size: 1.6rem;
    margin-bottom: var(--space-sm);
}

.popup-header p {
    color: var(--color-gray-500);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    background: var(--color-light);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
}

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

/* hCaptcha container */
.hcaptcha-container {
    display: flex;
    justify-content: center;
    margin: var(--space-md) 0;
}

.form-success {
    text-align: center;
    padding: var(--space-xl);
}

.form-success h4 {
    font-size: 1.35rem;
    margin-bottom: var(--space-sm);
}

.form-success p {
    color: var(--color-gray-600);
    margin-bottom: var(--space-lg);
}

.form-success-logo {
    display: flex;
    justify-content: center;
}

.form-success .success-logo {
    width: min(360px, 100%);
    height: auto;
    display: block;
    opacity: 0.95;
}

@media (max-width: 480px) {
    .form-success .success-logo {
        width: min(260px, 100%);
    }
}

.form-success.hidden {
    display: none;
}

/* ===== Animations ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fadeUp"] {
    transform: translateY(40px);
}

[data-animate="fadeRight"] {
    transform: translateX(-40px);
}

[data-animate="fadeLeft"] {
    transform: translateX(40px);
}

[data-animate="fadeIn"] {
    transform: translateY(0);
}

[data-animate="fadeRight"].animated,
[data-animate="fadeLeft"].animated {
    transform: translateX(0);
}

/* Animation Delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }

/* ===== Utilities ===== */
.hidden {
    display: none !important;
}

/* Web3Forms loading spinner (button) */
.spinner-btn {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Loading Spinner ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .sobre-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
}