/* CSS Variables - Emerald & Stone Theme */
:root {
    --primary: #00227c;
    /* Deep Blue requested by user */
    --primary-hover: #001a61;
    /* Darker blue for hover */
    --primary-light: #e0e7ff;
    /* Pale Indigo/Blue for backgrounds */
    --secondary: #cba163;
    /* Keep legacy gold for subtle accents if needed */

    --bg-body: #fafaf9;
    /* stone-50 */
    --bg-white: #ffffff;
    --bg-dark: #1c1917;
    /* stone-900 */
    --bg-card: #ffffff;

    --text-main: #1c1917;
    /* stone-900 */
    --text-muted: #57534e;
    /* stone-600 */
    --text-light: #fafaf9;
    /* stone-50 */

    --font-heading: 'Playfair Display', Times, serif;
    /* Updated to match header */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 1rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    /* Increased line-height for better readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    /* Added default margin for headings */
}

p {
    margin-bottom: 1.5rem;
    /* Added default margin for paragraphs */
}

p:last-child {
    margin-bottom: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    /* Increased side padding */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.75rem;
    /* Wider buttons */
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(4, 120, 87, 0.4);
}

.btn-white {
    background-color: white;
    color: var(--text-main);
    box-shadow: var(--shadow);
}

.btn-white:hover {
    background-color: #f5f5f4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Navbar */
nav.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    /* Taller navbar */
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.2);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-main);
}

.mobile-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
}

.nav-link {
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    border-left: 1px solid #e5e5e5;
    padding-left: 1.5rem;
    margin-left: 1rem;
}

.lang-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid #e5e5e5;
    transition: 0.3s;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #1c1917;
    overflow: hidden;
    padding-top: 70px;
    /* Offset for navbar */
    margin-top: -70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 1) 0%, rgba(28, 25, 23, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(4, 12, 120, 0.3);
    border: 1px solid rgba(230, 227, 255, 0.123);
    backdrop-filter: blur(8px);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #d7ceff;
    /* emerald-300 */
    margin-bottom: 1.5rem;
}

/* Stats */
.stats-banner {
    background-color: #064e3b;
    /* emerald-900 */
    color: white;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-val {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: #a7f3d0;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Values */
.card-value {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.card-value:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.08);
}

.card-value h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.icon-box {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.card-value:hover .icon-box {
    transform: scale(1.1) rotate(3deg);
}

.icon-box svg {
    width: 2.25rem;
    height: 2.25rem;
}

/* Workflows */
.workflow-section {
    background-color: var(--bg-dark);
    color: white;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.workflow-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.workflow-step::after {
    /* Connector line placeholder if needed */
}

.step-icon {
    width: 5rem;
    height: 5rem;
    background-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid #292524;
    box-shadow: 0 0 0 2px var(--bg-dark);
}

.step-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

/* Products */
.product-card {
    background: white;
    border-radius: 2.5rem;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.product-img-wrap {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: #a8a29e;
    /* stone-400 */
    padding: 6rem 0 3rem;
}

footer h4 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

footer ul li {
    margin-bottom: 1rem;
}

footer a {
    transition: 0.3s;
}

footer a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

footer .social-icon {
    width: 3rem;
    height: 3rem;
    background: #292524;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
    border: 1px solid transparent;
}

footer .social-icon:hover {
    border-color: var(--primary);
    background: var(--primary);
    transform: translateY(-3px);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (max-width: 900px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile Nav */
    .mobile-toggle {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        color: var(--text-main);
    }

    .mobile-toggle svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        border-radius: 0.5rem;
        padding: 1rem;
        width: 100%;
    }

    .lang-switch {
        display: flex;
        justify-content: center;
        width: 100%;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid #e5e5e5;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        gap: 1rem;
    }

    .lang-btn {
        font-size: 0.85rem;
        width: 40px;
        height: 40px;
    }

    .container {
        padding: 0 1.5rem;
        /* Ensure side padding on mobile */
    }

    /* Mobile Menu Placeholder */
    section {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.25rem !important;
    }

    /* Products page mobile padding fix */
    .container[style*="padding: 4rem 0"] {
        padding: 2rem 1.5rem !important;
    }
}

/* Stats Banner Mobile Fix */
.stats-banner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 901px) {
    .stats-banner {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Stats Grid Responsive */
@media (min-width: 901px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 3rem !important;
    }
}

/* Contact Wrapper Responsive */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* Responsive Padding Utilities */
.pad-section {
    padding: 2rem 1.5rem !important;
}

.pad-box {
    padding: 2rem 1.5rem !important;
}

@media (min-width: 768px) {
    .pad-section {
        padding: 4rem !important;
    }

    .pad-box {
        padding: 4rem !important;
    }
}

/* About Page Header */
.about-header {
    padding: 3rem 0 !important;
}

@media (min-width: 768px) {
    .about-header {
        padding: 4rem 0 !important;
    }
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1.5rem;
}

/* FAQ */
.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    background: white;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    font-weight: 700;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.faq-content {
    padding: 0 2rem 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    display: none;
    line-height: 1.8;
}

.faq-item.active .faq-content {
    display: block;
}

/* CTA */
.cta-section {
    background-color: #001b69;
    background: linear-gradient(135deg, #001b69 0%, #001242 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}