/* =====================================================
   ATLAS STUDIO - Estilos Principais (Redesign Duck Studio)
   ===================================================== */

/* =====================================================
   CSS Variables (Temas)
   ===================================================== */
:root {
    /* Dark Mode (Padrão) */
    --bg-primary: #0A0A0A;
    --bg-secondary: #121212;
    --bg-tertiary: #1A1A1A;
    --bg-card: rgba(26, 26, 26, 0.8);
    --text-primary: #FFFFFF;
    --text-secondary: #C0C0C0;
    --text-muted: #999999;
    --accent-start: #2E1A6B;
    --accent-end: #00A8E8;
    --accent-gradient: linear-gradient(135deg, #2E1A6B 0%, #00A8E8 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(18, 18, 18, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(10, 10, 10, 0.85);
    --overlay-color: rgba(10, 10, 10, 0.9);
    --ticker-bg: #00A8E8;
    --ticker-text: #0A0A0A;
}

[data-theme="light"] {
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E8E8E8;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #0A0A0A;
    --text-secondary: #4A4A4A;
    --text-muted: #6A6A6A;
    --accent-start: #2E1A6B;
    --accent-end: #00A8E8;
    --accent-gradient: linear-gradient(135deg, #2E1A6B 0%, #00A8E8 100%);
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --header-bg: rgba(248, 249, 250, 0.85);
    --overlay-color: rgba(248, 249, 250, 0.95);
    --ticker-bg: #2E1A6B;
    --ticker-text: #FFFFFF;
}

/* =====================================================
   Reset e Base
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* =====================================================
   Custom Cursor (CORRIGIDO)
   ===================================================== */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-end);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-follower {
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-end);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Efeito hover - cursor aumenta */
.cursor-follower.cursor-hover {
    width: 56px;
    height: 56px;
    background: rgba(0, 168, 232, 0.1);
    border-color: var(--accent-start);
}

.cursor.cursor-hover {
    width: 16px;
    height: 16px;
    background: var(--accent-start);
}

/* Desativar cursor em mobile/touch */
@media (hover: none), (pointer: coarse) {
    * {
        cursor: auto;
    }
    
    .cursor, .cursor-follower {
        display: none !important;
    }
}

/* =====================================================
   Header e Navegação
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
    flex-shrink: 0;
    overflow: visible;
    min-width: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 168, 232, 0.3));
    transition: opacity 0.3s ease;
}

.logo-dark {
    display: block;
}

.logo-light {
    display: none;
}

[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}

/* Navegação Desktop */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Instagram Icon Header */
.social-icon-header {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-icon-header svg {
    width: 18px;
    height: 18px;
}

.social-icon-header:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.theme-toggle:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .icon-sun {
    opacity: 1;
    transform: rotate(0);
}

[data-theme="dark"] .icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="light"] .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .icon-moon {
    opacity: 1;
    transform: rotate(0);
}

/* Hambúrguer */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 24px;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   Ticker / Marquee
   ===================================================== */
.ticker {
    background: var(--accent-gradient);
    color: var(--ticker-text);
    overflow: hidden;
    padding: 0.5rem 0;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .ticker {
    color: #0A0A0A;
}

[data-theme="light"] .ticker {
    color: #FFFFFF;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    gap: 2rem;
}

.ticker-content span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-right: 2rem;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =====================================================
   Container
   ===================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =====================================================
   Botões
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(46, 26, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-end);
    background: var(--glass-bg);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* =====================================================
   Seções
   ===================================================== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-end);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 0 3rem;
}

/* =====================================================
   Hero Section (Editorial)
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-start);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-end);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-gradient);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-bottom {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 400px;
    flex: 1;
    min-width: 250px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* =====================================================
   Sobre Section
   ===================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-mission {
    padding: 1.5rem;
    background: var(--glass-bg);
    border-left: 4px solid var(--accent-end);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-end);
}

.about-mission strong {
    color: var(--accent-end);
}

.about-visual img {
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-color);
    border: 1px solid var(--border-color);
}

/* =====================================================
   Estatísticas Section
   ===================================================== */
.stats {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =====================================================
   Serviços Section (Numerado - Editorial)
   ===================================================== */
.services-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
    transition: all 0.3s ease;
}

.service-row:first-child {
    border-top: 1px solid var(--border-color);
}

.service-row:hover {
    background: var(--glass-bg);
    padding-left: 1rem;
    padding-right: 1rem;
}

.service-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--accent-end);
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.service-row:hover .service-number {
    opacity: 1;
}

.service-content {
    max-width: 600px;
}

.service-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-family: 'Space Grotesk', sans-serif;
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 200px;
}

.tag {
    padding: 0.375rem 0.875rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-end);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.service-row:hover .tag {
    background: var(--accent-gradient);
    color: #FFFFFF;
    border-color: transparent;
}

/* =====================================================
   Catálogo Section
   ===================================================== */
.catalog-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn,
.catalog-item {
    --catalog-accent: var(--accent-end);
}

.tab-express,
.catalog-panel-express {
    --catalog-accent: #36C275;
}

.tab-brand,
.catalog-panel-brand {
    --catalog-accent: #3B82F6;
}

.tab-web,
.catalog-panel-web {
    --catalog-accent: #A855F7;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
}

.tab-btn:hover {
    border-color: var(--catalog-accent);
    color: var(--text-primary);
}

.tab-btn.active {
    background: color-mix(in srgb, var(--catalog-accent) 18%, var(--bg-card));
    color: #FFFFFF;
    border-color: var(--catalog-accent);
}

.catalog-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.catalog-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-items {
    display: grid;
    gap: 1rem;
}

.catalog-level-heading {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--catalog-accent);
}

.catalog-level-heading h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.catalog-level-heading p {
    margin-top: 0.35rem;
    color: var(--text-secondary);
}

.catalog-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-end);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.catalog-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid color-mix(in srgb, var(--catalog-accent) 65%, transparent);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.catalog-item:hover {
    border-color: var(--catalog-accent);
    transform: translateX(8px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.catalog-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--catalog-accent);
}

.catalog-info {
    flex: 1;
}

.catalog-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.catalog-item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.catalog-price {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--catalog-accent);
    font-size: 0.82rem;
    font-weight: 600;
}

.catalog-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* =====================================================
   Ferramentas Section
   ===================================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--accent-end);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.tool-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: var(--bg-tertiary);
    padding: 0.5rem;
}

.tool-card:hover img {
    filter: drop-shadow(0 0 15px rgba(0, 168, 232, 0.5));
}

.tool-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

/* =====================================================
   CTA Final
   ===================================================== */
.cta-final {
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0.05;
    z-index: 0;
}

.cta-final-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-final-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.cta-final-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* =====================================================
   Contato Section
   ===================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-content .section-title {
    margin-bottom: 1.5rem;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-end);
    transform: translateX(8px);
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent-end);
}

.contact-item span {
    color: var(--text-primary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'Space Grotesk', sans-serif;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-end);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--bg-tertiary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 168, 232, 0.3));
    transition: opacity 0.3s ease;
}

.footer-logo-dark {
    display: block;
}

.footer-logo-light {
    display: none;
}

[data-theme="light"] .footer-logo-dark {
    display: none;
}

[data-theme="light"] .footer-logo-light {
    display: block;
}

.footer-tagline {
    color: var(--text-secondary);
    font-style: italic;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-end);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.social-link:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(46, 26, 107, 0.3);
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-credit {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* =====================================================
   WhatsApp Float Button
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #FFFFFF;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation-play-state: paused;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 40px rgba(37, 211, 102, 0.7);
    }
}

/* =====================================================
   Scroll Reveal Animations
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   Mobile Navigation
   ===================================================== */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px var(--shadow-color);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.25rem;
        width: 100%;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-row {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
    }

    .service-tags {
        grid-column: 1 / -1;
        justify-content: flex-start;
        max-width: none;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .catalog-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 0.25rem 0.5rem;
        scrollbar-width: thin;
    }

    .tab-btn {
        flex: 0 0 auto;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 2rem;
    }

    .hero-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-tags {
        justify-content: flex-start;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .ticker {
        top: 65px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 32px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .social-icon-header,
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
}

/* =====================================================
   Menu Overlay (para mobile)
   ===================================================== */
@media (max-width: 1024px) {
    .nav::before {
        content: '';
        position: fixed;
        inset: 0;
        background: var(--overlay-color);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: -1;
    }

    .nav.active::before {
        opacity: 1;
        visibility: visible;
    }
}

/* =====================================================
   Firebase Areas
   ===================================================== */
.public-orders-list,
.admin-list {
    display: grid;
    gap: 1rem;
}

.public-order-card,
.admin-item,
.admin-form-panel,
.private-panel {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.public-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-left: 3px solid var(--status-color, var(--border-color));
}

.public-order-code {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.public-order-info {
    display: grid;
    gap: 0.2rem;
}

.public-order-name {
    color: var(--text-primary);
}

.public-order-info .public-order-code {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.status-badge-nao_iniciado { background: #6B7280; }
.status-badge-em_andamento { background: #2563EB; }
.status-badge-em_pausa { background: #D99A00; }
.status-badge-aguardando_revisao { background: #EA580C; }
.status-badge-em_revisao { background: #7C3AED; }
.status-badge-finalizado { background: #16A34A; }

.status-nao_iniciado { --status-color: #6B7280; }
.status-em_andamento { --status-color: #2563EB; }
.status-em_pausa { --status-color: #D99A00; }
.status-aguardando_revisao { --status-color: #EA580C; }
.status-em_revisao { --status-color: #7C3AED; }
.status-finalizado { --status-color: #16A34A; }

.public-orders-message,
.form-feedback {
    color: var(--text-secondary);
}

.private-area {
    min-height: 100vh;
    background: var(--bg-primary);
}

.private-shell {
    width: min(100% - 2rem, 680px);
    margin: 0 auto;
    padding: 3rem 0;
}

.private-shell-wide {
    width: min(100% - 2rem, 1100px);
}

.private-brand {
    color: var(--accent-end);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.private-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.private-back-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.private-back-link:hover {
    color: var(--accent-end);
}

.private-switcher {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.private-switch-link {
    flex: 0 0 auto;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.private-switch-link:hover,
.private-switch-link.active {
    border-color: var(--accent-end);
    background: rgba(0, 168, 232, 0.12);
    color: var(--text-primary);
}

.private-panel {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.private-title {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.private-lead {
    color: var(--text-secondary);
}

.private-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
}

.private-form .btn {
    margin-top: 0.5rem;
}

.private-panel-header,
.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.client-status-block {
    display: grid;
    gap: 0.6rem;
    margin: 2rem 0;
}

.private-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.private-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.private-section-divider {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.private-section-title {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.admin-tabs .tab-btn {
    flex: 0 0 auto;
}

.admin-tab-panel {
    display: grid;
    gap: 1.5rem;
}

.admin-form-panel {
    padding: 1.5rem;
}

.admin-grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
}

.admin-project-form {
    grid-template-columns: 1fr 1fr 1fr auto;
}

.admin-item {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(160px, 220px) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.admin-project-item {
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 220px) minmax(180px, 1fr) auto auto;
}

.admin-item strong,
.admin-item small {
    display: block;
}

.admin-item small {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.btn-danger {
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.is-hidden {
    display: none !important;
}

.contract-client-view {
    margin-top: 1.5rem;
}

.contract-paper {
    width: min(100%, 794px);
    margin: 0 auto;
    padding: 3rem;
    background: #FAFAF8;
    color: #202020;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.65;
}

.contract-header,
.contract-keep-together,
.contract-meta,
.contract-details,
.contract-signature,
.contract-validation-footer {
    break-inside: avoid;
    page-break-inside: avoid;
}

.contract-logo {
    width: 150px;
    height: auto;
    margin: 0 auto 0.75rem;
}

.contract-kicker {
    color: #555;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.contract-paper h1 {
    margin: 1rem 0 2rem;
    color: #171717;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    text-align: center;
}

.contract-paper h2 {
    margin: 1.75rem 0 0.65rem;
    color: #252525;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
}

.contract-meta {
    padding: 0.85rem 1rem;
    border: 1px solid #D8D8D2;
    border-radius: 5px;
}

.contract-services {
    padding-left: 1.3rem;
}

.contract-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.contract-details div {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem;
    background: #F0F0EB;
    border-radius: 5px;
}

.contract-details span {
    color: #666;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.contract-signature,
.contract-signed-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #B8DCC8;
    background: #EDF8F1;
    border-radius: 5px;
}

.contract-validation-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid #D8D8D2;
    color: #555;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    overflow-wrap: anywhere;
}

.contract-qr {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
}

.contract-editor {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.contract-editor summary {
    cursor: pointer;
    color: var(--accent-end);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.contract-editor-body {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.contract-editor fieldset {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.contract-editor legend {
    padding: 0 0.4rem;
    color: var(--accent-end);
    font-weight: 600;
}

.contract-check {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contract-other-input {
    grid-column: 1 / -1;
}

.contract-admin-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.contract-pdf-staging {
    position: fixed;
    left: 0 !important;
    top: 0 !important;
    z-index: 2000;
    width: 794px !important;
    padding: 0;
    background: #202020;
    pointer-events: none;
}

.validation-card {
    text-align: center;
}

.validation-logo {
    width: 170px;
    margin: 0 auto 1.25rem;
}

.validation-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 1.5rem auto;
    border: 2px solid #16A34A;
    border-radius: 50%;
    color: #16A34A;
    font-size: 2rem;
    font-weight: 700;
}

.validation-details {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
    text-align: left;
}

.validation-details p {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.validation-details span {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .private-shell,
    .private-shell-wide {
        width: min(100% - 1.5rem, 680px);
        padding: 1.5rem 0;
    }

    .private-panel-header,
    .admin-header {
        flex-direction: column;
    }

    .admin-grid-form,
    .admin-project-form,
    .admin-item,
    .admin-project-item {
        grid-template-columns: 1fr;
    }

    .contract-details,
    .contract-admin-fields {
        grid-template-columns: 1fr;
    }

    .contract-paper {
        padding: 1.5rem;
    }

    .contract-validation-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-item .btn,
    .admin-item .form-input {
        width: 100%;
    }
}

/* =====================================================
   Loading e Performance
   ===================================================== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* =====================================================
   Acessibilidade
   ===================================================== */
:focus-visible {
    outline: 2px solid var(--accent-end);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}