/* ============================================
   ONVERTO.COM - MODERN CSS STYLESHEET
   ============================================ */

/* CSS RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2D6CDF;
    --secondary-color: #58CCDD;
    --dark-color: #1A2E52;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
}

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

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

a:hover {
    color: var(--secondary-color);
}

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

.section {
    padding: 80px 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 20px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* HEADER & NAVIGATION */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-brand img {
    width: 50px;
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    pointer-events: none;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 46, 82, 0.9), rgba(45, 108, 223, 0.8));
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 3.5rem;
}

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

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.page-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* SERVICES */
.services {
    background: var(--bg-light);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* STATS */
.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* TEAM */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* CTA SECTION */
.cta {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* FOOTER */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.blog-content h2 a {
    color: var(--dark-color);
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

/* ARTICLE */
.article-header {
    background: var(--bg-light);
    padding: 60px 20px;
    text-align: center;
}

.article-category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-featured-image {
    margin: 40px 0;
}

.article-featured-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.article-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    margin-top: 40px;
}

.article-body {
    max-width: 800px;
}

.article-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-cta {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.author-info {
    display: flex;
    gap: 15px;
}

.author-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.related-articles, .categories {
    list-style: none;
}

.related-articles li, .categories li {
    margin-bottom: 15px;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-error {
    color: #DC2626;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #DC2626;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 5px;
}

.form-success {
    background: #10B981;
    color: var(--white);
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.map-section {
    margin-top: 60px;
}

.map-container {
    height: 400px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.map-overlay {
    text-align: center;
    color: var(--white);
    padding: 40px;
}

.map-overlay h3 {
    color: var(--white);
    margin-bottom: 15px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: 300;
    transition: var(--transition);
    pointer-events: none;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 25px;
}

/* LEGAL PAGES */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-text ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-text li {
    margin-bottom: 10px;
}

.legal-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    font-style: italic;
    color: var(--text-light);
}

/* VALUES & MISSION */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.mv-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.mv-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* TIMELINE */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    pointer-events: none;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.timeline-year {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.timeline-content {
    flex: 1;
    padding-top: 15px;
}

/* ABOUT CONTENT */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* NEWSLETTER */
.newsletter-section {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 30px auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

/* SERVICE DETAIL */
.service-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.feature-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.service-cta {
    text-align: center;
    background: var(--bg-light);
    padding: 60px 40px;
    border-radius: 10px;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--secondary-color);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: var(--shadow);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .services-grid,
    .features-grid,
    .team-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        grid-template-columns: 1fr;
    }

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

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

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

    .timeline-container::before {
        left: 30px;
    }

    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-small { font-size: 0.9rem; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
