/* ============================================
   Uniregistro - CSS
   Paleta: Azul corporativo, dourado, branco
   Fontes: Merriweather + Inter
   ============================================ */

:root {
    --color-primary: #1e3a5f;
    --color-secondary: #ca8a04;
    --color-accent: #eab308;
    --color-gold-light: #fef3c7;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-text: #374151;
    --color-text-light: #6b7280;
    --color-text-white: #f9fafb;
    --color-border: #e5e7eb;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --max-width: 1160px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(30, 58, 95, 0.15);
    --radius: 10px;
    --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-secondary); }
img { max-width: 100%; height: auto; }

/* ---- HEADER ---- */
.site-header {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--color-secondary);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-white);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.logo-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--color-secondary);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    border-radius: 6px;
}

.logo-highlight { color: var(--color-accent); }

.nav-list { list-style: none; display: flex; gap: 24px; }
.nav-list a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition);
}
.nav-list a:hover { color: var(--color-accent); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-white);
    transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0c1f36 100%);
    color: var(--color-text-white);
    padding: 85px 0 65px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ca8a04' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    position: relative;
    color: var(--color-text-white);
}

.hero-subtitle {
    font-size: 1.08rem;
    color: #d1d5db;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
}

/* ---- SECTIONS ---- */
.content-section { padding: 60px 0; }
.content-section.alt-bg { background: var(--color-bg-alt); }

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--color-primary);
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
}

.content-section h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: 35px;
    margin-bottom: 14px;
}

.content-section p { margin-bottom: 18px; font-size: 1rem; }

/* ---- CARDS ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.card p { color: var(--color-text-light); font-size: 0.93rem; margin-bottom: 0; }

/* ---- PATENT GRID ---- */
.patent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.patent-item {
    padding: 28px;
    border-left: 4px solid var(--color-secondary);
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.patent-item h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.patent-item p { color: var(--color-text-light); font-size: 0.95rem; margin-bottom: 0; }

/* ---- STEPS ---- */
.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step {
    text-align: center;
    padding: 28px 20px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.step p { color: var(--color-text-light); font-size: 0.93rem; margin-bottom: 0; }

/* ---- CTA ---- */
.cta-section {
    background: var(--color-primary);
    color: var(--color-text-white);
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--color-text-white);
    font-family: var(--font-heading);
}

.cta-section h2::after { background: var(--color-accent); }

.cta-section p {
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-bg);
    padding: 14px 38px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.cta-button:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ---- FOOTER ---- */
.site-footer {
    background: #0c1f36;
    color: var(--color-text-white);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.footer-col p { color: #9ca3af; font-size: 0.9rem; }
.footer-heading {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #9ca3af; font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--color-accent); }

.footer-bottom {
    border-top: 1px solid #1e3a5f;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p { color: #6b7280; font-size: 0.85rem; }

/* ---- WHATSAPP ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform var(--transition);
}

.whatsapp-float:hover { transform: scale(1.08); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-primary);
        padding: 80px 30px 30px;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.open { right: 0; }
    .nav-list { flex-direction: column; gap: 18px; }
    .nav-list a { font-size: 1rem; }

    .hero { padding: 55px 0 45px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-subtitle { font-size: 1rem; }
    .content-section h2 { font-size: 1.4rem; }
    .content-section h3 { font-size: 1.1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.4rem; }
    .cards-grid, .patent-grid, .steps-list { grid-template-columns: 1fr; }
}
