/* 
    Judah Tech Soluções Digitais - Design System 
    Primary Color: #F87000
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #F87000;
    --primary-dark: #cc5c00;
    --primary-light: #ffa14d;
    --secondary: #1A1A1A;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #FFFFFF;
    --bg-alt: #F9FAFB;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-word: border-box;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
}

html {
    scroll-behavior: smooth;
}

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

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

.lucide {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(248, 112, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 112, 0, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

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

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    flex: 0 0 auto;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.header-cta {
    flex: 0 0 auto;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary);
}

.nav-links a:hover {
    color: var(--primary);
}

.portal-link {
    background: rgba(248, 112, 0, 0.1);
    color: var(--primary) !important;
    padding: 6px 14px !important;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(248, 112, 0, 0.2);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.portal-link:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #FFF5ED 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Floating Card inside Hero */
.hero-card {
    position: absolute;
    bottom: -30px;
    left: -50px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-card h4 {
    color: var(--primary);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header span {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 10px;
}

/* Features/About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    width: 80%;
    border-radius: var(--radius-md);
}

.about-img-sub {
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 50%;
    border: 8px solid var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.about-content ul {
    margin-top: 30px;
}

.about-content li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.about-content li i {
    width: 40px;
    height: 40px;
    background: rgba(248, 112, 0, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background-color: var(--bg-alt);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

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

/* Services */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(248, 112, 0, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
}

.service-icon .lucide {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: var(--secondary);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-about p {
    color: #999;
    margin-bottom: 25px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ccc;
    transition: var(--transition);
}

.social-links .lucide {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
}

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

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Clients Carousel */
.clients {
    padding: 80px 0;
    background-color: var(--bg-alt);
    overflow: hidden;
}

.clients-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.clients-carousel-wrapper::before,
.clients-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-alt), transparent);
}

.clients-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-alt), transparent);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scroll-logos 35s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

.clients-track img {
    width: 180px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
}

.clients-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-logos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 35px; }
    .hero-btns { justify-content: center; }
    .hero-card { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .header-cta { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(248,112,0,0.08); cursor: pointer; }
    .hero-text h1 { font-size: 2.2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    body.menu-open { overflow: hidden; }
}

/* ==========================================
   MOBILE APP DRAWER MENU
   ========================================== */

/* Backdrop */
.mob-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.mob-backdrop.open {
    opacity: 1;
}

/* Drawer Panel */
.mob-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(88vw, 360px);
    height: 100%;
    background: #fff;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    overflow-x: hidden;
}
.mob-drawer.open {
    right: 0;
}

/* Drawer Header */
.mob-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}
.mob-drawer-header img {
    height: 42px;
    width: auto;
}
.mob-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: all 0.2s ease;
}
.mob-close-btn:hover {
    background: rgba(248,112,0,0.12);
    color: var(--primary);
}
.mob-close-btn .lucide {
    width: 20px;
    height: 20px;
}

/* Drawer Navigation */
.mob-nav {
    flex: 1;
    padding: 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mob-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    text-decoration: none;
}
.mob-nav-item:hover, .mob-nav-item.active {
    background: rgba(248,112,0,0.08);
    color: var(--primary);
}
.mob-nav-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.mob-nav-item:hover .mob-nav-icon,
.mob-nav-item.active .mob-nav-icon {
    background: rgba(248,112,0,0.12);
    color: var(--primary);
}
.mob-nav-icon .lucide {
    width: 22px;
    height: 22px;
}
.mob-nav-item span { flex: 1; }
.mob-nav-arrow {
    color: #ccc;
}
.mob-nav-arrow .lucide {
    width: 16px;
    height: 16px;
}

/* Drawer Divider */
.mob-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 20px;
}

/* Drawer Footer */
.mob-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
}
.mob-drawer-footer .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 16px;
    justify-content: center;
}
.mob-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}
.mob-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.mob-social a:hover {
    background: var(--primary);
    color: white;
}

/* Safe area for notch devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mob-drawer-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* Hide drawer on desktop */
@media (min-width: 769px) {
    .mob-backdrop, .mob-drawer { display: none !important; }
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION BAR (App Style)
   ========================================== */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Space so content doesn't hide behind bottom nav */
    body {
        padding-bottom: 72px;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #efefef;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
        z-index: 1500;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        align-items: center;
        justify-content: space-around;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 1;
        height: 100%;
        color: #aaa;
        text-decoration: none;
        font-family: 'Outfit', sans-serif;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        transition: color 0.2s ease;
        position: relative;
    }

    .bottom-nav-item .lucide {
        width: 22px;
        height: 22px;
        stroke-width: 1.8;
        transition: transform 0.2s ease, color 0.2s ease;
    }

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

    .bottom-nav-item.active .lucide {
        transform: translateY(-2px);
    }

    /* Active indicator dot */
    .bottom-nav-item.active::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 32px;
        background: rgba(248, 112, 0, 0.1);
        border-radius: 10px;
        z-index: -1;
    }

    .bottom-nav-item:active {
        transform: scale(0.92);
    }
}
