/* ==========================================================================
   SISTEMA DE DESIGN: UNBOX FOR YOU (Japandi Premium Adaptado)
   ========================================================================== */

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

:root {
    --brand-blue: #0058A3;      /* Azul corporativo primário */
    --brand-mustard: #F7C846;   /* Amarelo mostarda de realce */
    --brand-white: #F5F5F7;     /* Fundo off-white */
    --card-bg: #FFFFFF;         /* Branco puro para cards */
    --charcoal: #333333;        /* Grafite escuro para textos */
    --text-muted: #6B7280;      /* Cinza intermediário */
    --border-color: #E0E0E0;    /* Borda fina e arquitetónica */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    --transition-smart: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--brand-white);
    color: var(--charcoal);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--charcoal);
}

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

/* Tipografia Utilitária */
.text-brand-blue { color: var(--brand-blue); }
.text-brand-mustard { color: var(--brand-mustard); }
.text-muted { color: var(--text-muted); }

/* Botoes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-smart);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 88, 163, 0.2);
}

.btn-primary:hover {
    background-color: #004682;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 88, 163, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--charcoal);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.btn-outline:hover {
    background-color: var(--brand-blue);
    color: #fff;
}

/* Header & Navbar */
.navbar {
    background-color: rgba(245, 245, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.logo-link {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--charcoal);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--charcoal);
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-menu {
        display: none; /* simple hidden for mobile initially */
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--brand-white);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-column p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-column ul a:hover {
    color: var(--brand-blue);
}

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

/* Sections Generais */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

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

.hero-visual {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    background-color: var(--brand-white);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid de Cartões */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem 1.5rem;
    transition: var(--transition-smart);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--brand-blue);
}

.card-icon {
    font-size: 2rem;
    color: var(--brand-blue);
    margin-bottom: 1.5rem;
}

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

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Process Timeline */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -3rem;
    width: 2px;
    background-color: var(--border-color);
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--brand-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 1.5rem;
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    padding-top: 0.4rem;
}

.step-content p {
    color: var(--text-muted);
}

/* Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--brand-white);
    transition: var(--transition-smart);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-blue);
    background-color: var(--card-bg);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Helper Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.bg-white { background-color: var(--card-bg); }
