/* ========================================
   Biomatrixglobal - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --bg: #F6F5F2;
    --bg-secondary: #EAE7DF;
    --surface: #FFFFFF;
    --primary: #1A3628;
    --primary-hover: #264D3A;
    --accent: #C45B31;
    --accent-hover: #D86B3E;
    --text-main: #0D1410;
    --text-muted: #5C6B61;
    --border: #D3CEC1;
    --success: #2D6649;
    --whatsapp: #25D366;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    
    --container-padding: 1.5rem;
    --section-padding: 6rem;
}

@media (min-width: 768px) {
    :root {
        --container-padding: 3rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 6rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

/* Typography */
.overline {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.overline.light {
    color: rgba(255,255,255,0.6);
}

.section-title {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-title.light {
    color: #fff;
}

.section-text {
    color: var(--text-muted);
    max-width: 600px;
}

.section-text.light {
    color: rgba(255,255,255,0.7);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

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

.btn-secondary {
    background-color: var(--primary);
    color: #fff;
}

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

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

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

.btn-outline-white {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}

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

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #20BD5A;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 0.75rem;
}

.link-arrow.light {
    color: var(--accent);
}

.link-arrow svg {
    width: 18px;
    height: 18px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(26, 54, 40, 0.05);
    color: var(--primary);
    border: 1px solid rgba(26, 54, 40, 0.1);
    border-radius: 9999px;
}

.badge-light {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(246, 245, 242, 0.8);
    border-bottom: 1px solid rgba(26, 54, 40, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon.light {
    background-color: #fff;
    color: var(--primary);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

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

.header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .header-cta {
        display: inline-flex;
    }
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--primary);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem var(--container-padding);
    background-color: var(--bg);
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
}

.mobile-cta {
    margin-top: 1rem;
    text-align: center;
}

/* Hero */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 54, 40, 0.85), rgba(26, 54, 40, 0.4), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: var(--section-padding) 0;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.call-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 500;
    margin-bottom: 2rem;
}

.call-cta svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

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

/* Certifications Bar */
.certifications-bar {
    background-color: var(--primary);
    padding: 1rem 0;
    overflow: hidden;
}

.marquee {
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-right: 1.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    white-space: nowrap;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.cert-badge svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* Sections */
.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* About Teaser */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

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

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(26, 54, 40, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.feature-item h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-stat {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: none;
}

@media (min-width: 768px) {
    .about-stat {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: 7fr 5fr;
    }
}

.bento-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    overflow: hidden;
    background-color: var(--surface);
    border: 1px solid rgba(26, 54, 40, 0.1);
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-card:hover img {
    transform: scale(1.05);
}

.bento-large {
    aspect-ratio: 16/10;
}

.bento-medium {
    flex: 1;
    min-height: 200px;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 54, 40, 0.8), transparent);
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
}

.bento-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0.75rem 0 0.5rem;
}

.bento-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    max-width: 400px;
}

.bento-cta {
    background-color: var(--primary);
    padding: 1.5rem;
}

.bento-cta-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.bento-cta h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bento-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

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

.stat-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin: 0 auto 1rem;
}

.stat-item .stat-number {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.875rem;
}

/* Global Section */
.global-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

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

.global-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.global-stat-item {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
}

.global-stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

.global-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.global-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.globe-icon {
    width: 200px;
    height: 200px;
    color: var(--accent);
    stroke-width: 0.5;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

.testimonial-card {
    background-color: var(--surface);
    padding: 2rem;
    border: 1px solid rgba(26, 54, 40, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 6rem;
    color: rgba(196, 91, 49, 0.1);
    position: absolute;
    top: 0;
    left: 1rem;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
    color: var(--accent);
}

.testimonial-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

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

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

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

.footer-certs {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.certs-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.cert-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

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

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
    width: 56px;
    height: 56px;
    background-color: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* Exit Intent Popup */
.exit-popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.exit-popup.open {
    display: flex;
}

.exit-popup-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.exit-popup-content {
    position: relative;
    background-color: #fff;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    z-index: 10;
}

.exit-popup-close:hover {
    color: var(--text-main);
}

.exit-popup-close svg {
    width: 24px;
    height: 24px;
}

.exit-popup-header {
    background-color: var(--primary);
    padding: 1.5rem;
    text-align: center;
}

.exit-popup-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.exit-popup-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.exit-popup-body {
    padding: 1.5rem;
}

.exit-offer-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 0.5rem;
}

.exit-offer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.exit-call-btn {
    margin-bottom: 0.75rem;
}

.exit-trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.trust-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    margin-right: 0.25rem;
}

.exit-skip {
    width: 100%;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.exit-skip:hover {
    color: var(--text-main);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}
