/* ==========================================================================
   Victor Gustavo - Digital Headquarters
   Design System & Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Base */
    --bg-body: #050505;
    --bg-surface: #101010;
    --bg-surface-hover: #161616;

    /* Typography */
    --text-primary: #F5F5F5;
    --text-secondary: #E8E8E8;
    --text-tertiary: #909090;

    /* Accents */
    --accent-gold: #D4AF37;
    --accent-error: #EF4444;

    /* Utilities */
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(5, 5, 5, 0.7);
    --blur-strength: 12px;

    /* Spacing (8pt grid) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 64px;

    /* Typography Scale */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Layout */
    --container-max: 1100px;
    --header-height: 72px;
}

/* --------------------------------------------------------------------------
   Font Face (Local Inter)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/Inter-Bold.woff2') format('woff2');
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-body);
    min-height: 100vh;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border-bottom: 1px solid var(--border-color);
}

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

.header__logo {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.header__logo:hover {
    color: var(--accent-gold);
}

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

.header__contact {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.header__contact:hover {
    color: var(--text-primary);
}

.header__contact span {
    display: none;
}

@media (min-width: 768px) {
    .header__contact span {
        display: inline;
    }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
}

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

@media (min-width: 768px) {
    .hero__inner {
        grid-template-columns: 3fr 2fr;
        gap: var(--space-xl);
    }
}

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

.hero__badge {
    display: inline-block;
    width: fit-content;
    padding: var(--space-xs) var(--space-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.hero__visual .hero__image {
    max-width: 250px;
}

@media (min-width: 768px) {
    .hero__visual {
        order: 0;
    }

    .hero__visual .hero__image {
        max-width: 350px;
    }
}

.hero__image-placeholder {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3 / 4;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.hero__image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

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

.btn--outline:hover {
    background: var(--text-primary);
    color: var(--bg-body);
    border-color: var(--text-primary);
}

.btn--primary {
    color: var(--bg-body);
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn--primary:hover {
    background: #e6c547;
    border-color: #e6c547;
}

/* --------------------------------------------------------------------------
   Sections Common
   -------------------------------------------------------------------------- */
.section__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Especialidades - Bento Grid
   -------------------------------------------------------------------------- */
.especialidades {
    padding: var(--space-xl) 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

.bento-card {
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bento-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.bento-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-sm);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    color: var(--accent-gold);
}

.bento-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.bento-card__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .bento-card__text {
        font-size: 0.9375rem;
        line-height: 1.5;
    }
}

/* --------------------------------------------------------------------------
   Bio Section
   -------------------------------------------------------------------------- */
.bio {
    padding: var(--space-xl) 0;
}

.bio__content {
    max-width: 600px;
    margin: 0 auto;
}

.bio__title,
.bio__crm {
    text-align: center;
}

.bio__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.bio__text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-align: left;
}

.bio__text:last-of-type {
    margin-bottom: var(--space-md);
}

.bio__email {
    display: block;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--accent-gold);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.bio__email:hover {
    border-bottom-color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   Contato Section
   -------------------------------------------------------------------------- */
.contato {
    padding: var(--space-xl) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contato__content {
    text-align: center;
}

.contato__text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: var(--space-lg) 0;
}

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

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

.footer__copy {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer__social a:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   FAB (Floating Action Button)
   -------------------------------------------------------------------------- */
.fab {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* --------------------------------------------------------------------------
   Animations (Fade In on Scroll)
   -------------------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Bio CRM
   -------------------------------------------------------------------------- */
.bio__crm {
    font-size: 0.875rem;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   Como Funciona Section
   -------------------------------------------------------------------------- */
.como-funciona {
    padding: var(--space-xl) 0;
}

.como-funciona__content {
    max-width: 700px;
    margin: 0 auto;
}

.como-funciona__badge {
    display: block;
    width: fit-content;
    margin: 0 auto var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

.como-funciona .section__title {
    text-align: center;
}

.como-funciona__text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
    text-align: left;
}

.como-funciona__text:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-gold);
    color: var(--bg-body);
    padding: var(--space-xs) var(--space-sm);
    z-index: 200;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}
