/*
Theme Name: Conformity
Theme URI: https://conformity.com.br
Author: Conformity Team
Author URI: https://conformity.com.br
Description: Tema oficial do Conformity - Sistema de Gestão ISO em nuvem
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: conformity
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1e1b4b;
    --text-color: #374151;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

.section {
    padding: 5rem 0;
}

.section--gray {
    background-color: var(--gray-50);
}

.section--dark {
    background: var(--gradient-dark);
    color: var(--white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background: #0989FF;
    color: #ffffff;
    border: none;
}

.btn--primary:hover {
    background: #82C2FF;
    color: #ffffff;
}

.btn--secondary {
    background: #362F7D;
    color: var(--white);
    border: 2px solid #362F7D;
}

.btn--secondary:hover {
    background: #2a2461;
    border-color: #2a2461;
    color: var(--white);
}

.btn--white {
    background: var(--white);
    color: var(--primary-color);
}

.btn--white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn--yellow {
    background: #362F7D;
    color: var(--white);
    border: 2px solid #362F7D;
}

.btn--yellow:hover {
    background: #2a2461;
    border-color: #2a2461;
    color: var(--white);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #4ba5ff;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-nav>ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--white);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Submenu Dropdown */
.main-nav .has-submenu {
    position: relative;
}

.main-nav .has-submenu>a svg {
    transition: transform 0.2s ease;
}

.main-nav .has-submenu:hover>a svg {
    transform: rotate(180deg);
}

.main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    z-index: 100;
}

.main-nav .submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--white);
}

.main-nav .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.main-nav .submenu li {
    padding: 0;
}

.main-nav .submenu a {
    display: block;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-color);
    transition: var(--transition);
}

.main-nav .submenu a:hover {
    background: var(--gray-50);
    color: #4ba5ff;
}

/* Mega Submenu */
.main-nav .submenu--mega {
    min-width: 280px;
}

/* Nested Submenu (CRM) */
.main-nav .has-submenu-nested {
    position: relative;
}

.main-nav .has-submenu-nested>a {
    justify-content: space-between;
}

.main-nav .submenu-nested {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.main-nav .has-submenu-nested:hover .submenu-nested {
    opacity: 1;
    visibility: visible;
    margin-left: 0;
}

.main-nav .submenu-nested a {
    padding: 0.625rem 1.25rem;
}

.header-cta {
    display: flex;
    gap: 1rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 8rem 0 5rem;
    background: #4ba5ff;
    overflow: hidden;
}

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

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-title span {
    color: #FFD814;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

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

/* Trust Badge */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #4ba5ff;
    overflow: hidden;
    margin-left: -12px;
    background: var(--white);
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

.avatar-group .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trust-text {
    font-size: 0.9375rem;
    color: var(--white);
    font-weight: 500;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-mockup {
    max-width: 400px;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners {
    padding: 4rem 0;
    background: #4ba5ff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partners-title {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partner-logo {
    height: 180px;
    width: auto;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 6rem 0;
    background: #4ba5ff;
}

.features-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.features-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.features-header h2 {
    margin-bottom: 1rem;
    color: var(--white);
}

.features-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.features-stack {
    position: relative;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: sticky;
    top: 100px;
    background: #4ba5ff;
    padding: 3rem 0;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.feature-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #4ba5ff);
    pointer-events: none;
}

.feature-row:nth-child(1) {
    z-index: 1;
}

.feature-row:nth-child(2) {
    z-index: 2;
    top: 120px;
}

.feature-row:nth-child(3) {
    z-index: 3;
    top: 140px;
}

.feature-row:nth-child(4) {
    z-index: 4;
    top: 160px;
}

.feature-row:nth-child(5) {
    z-index: 5;
    top: 180px;
}

.feature-row:nth-child(6) {
    z-index: 6;
    top: 200px;
}

.feature-row--reverse {
    direction: rtl;
}

.feature-row--reverse>* {
    direction: ltr;
}

.feature-image {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.feature-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius-lg);
}

.feature-content h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.feature-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   Modules/Services Cards
   ========================================================================== */
.modules {
    padding: 6rem 0;
    background: #4ba5ff;
}

.modules-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.modules-header h2 {
    color: var(--white);
}

.modules-header p {
    color: rgba(255, 255, 255, 0.9);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.module-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.module-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.module-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

.module-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.module-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
}

.cta-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #7FDA69;
    color: #1a4d14;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    font-size: 1.125rem;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
    padding: 4rem 0;
    background: var(--dark-color);
}

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

.stat-item {
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #0f0d24;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    opacity: 0.7;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    opacity: 0.7;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-mockup {
        max-width: 300px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-row--reverse {
        direction: ltr;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav>ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav>ul>li {
        border-bottom: 1px solid var(--gray-100);
    }

    .main-nav>ul>li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        padding: 0.875rem 0;
        justify-content: space-between;
    }

    .main-nav .submenu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        margin: 0;
        padding: 0 0 0.5rem 1rem;
        background: var(--gray-50);
        border-radius: 0;
        min-width: auto;
    }

    .main-nav .submenu::before {
        display: none;
    }

    .main-nav .submenu a {
        padding: 0.5rem 0;
    }

    .main-nav .submenu-nested {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        margin: 0;
        padding: 0 0 0.5rem 1rem;
        background: var(--gray-100);
        border-radius: 0;
        min-width: auto;
    }

    .main-nav .submenu-nested a {
        padding: 0.5rem 0;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}