:root {
    /* Color Palette */
    --primary-color: #0d4641;
    /* Deep Teal */
    --secondary-color: #127c7c;
    /* Bright Turquoise */
    --accent-color: #f4f1ea;
    /* Off-white/Beige */
    --text-color: #333333;
    /* Dark Gray */
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    /* Light Gray */
    --bg-white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-spacing: 100px;
    --border-radius: 16px;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    /* Improved readability */
    color: var(--text-color);
    background-color: var(--bg-light);
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

/* --- Header & Top Bar --- */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 1002;
    font-size: 0.7rem;
    line-height: normal;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
}

.eu-text {
    margin-bottom: 0;
    opacity: 0.85;
    flex: 1;
    text-align: right;
    /* Clean alignment against logos */
    font-weight: 300;
    letter-spacing: 0.3px;
}

.eu-logos {
    flex-shrink: 0;
}

.eu-logos {
    flex: 1;
    width: 100%;
}

.eu-logos img {
    height: auto;
    width: 100%;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
    object-fit: contain;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: relative;
    width: 100%;
    z-index: 1001;
    padding: 12px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 10% 0 40px;
    margin: 0 !important;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 75px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
}

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero {
    /* Gradient overlay + Image will be inline in HTML or moved here if unique */
    /* Keeping text styles generic here */
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* --- Features & Cards --- */
.feature,
.stat-card,
.feature-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature:hover,
.stat-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature h3,
.stat-card h3,
.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.hero p.hero-desc {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* --- Stats --- */
.stat-card h3 {
    color: var(--secondary-color);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-weight: 500;
    color: #555;
    margin-bottom: 0;
}

/* --- Forms --- */
form input,
form select,
form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 0 !important;
    /* Managed by wrapper */
}

form input:focus,
form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(18, 124, 124, 0.1);
}

form button {
    width: 100%;
    margin-top: 10px;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 80px 0 80px;
    /* Added bottom padding to contain margins */
}

.eu-bar {
    background-color: transparent;
    padding: 30px 0 0;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

.eu-logo svg {
    display: block;
    max-width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 2.2rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-info h4,
.footer-links h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* --- Mobile/Responsive --- */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        /* Dark on white/light header */
        transition: var(--transition);
        border-radius: 2px;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: #fff;
        flex-direction: column;
        padding: 90px 40px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        align-items: flex-start;
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: #333;
    }

    .lang-switcher {
        margin-top: 20px;
        margin-left: 0 !important;
    }

    .lang-switcher select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
    }

    /* Layout Adjustments */
    .hero h1 {
        font-size: 2rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero {
        padding: 180px 0 80px !important;
    }

    .top-bar {
        position: relative;
        padding: 0;
        background-color: var(--primary-color);
        /* Ensure background stays */
    }

    .top-bar .container {
        padding: 0 !important;
    }

    .top-bar-content {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .eu-text {
        font-size: 0.7rem;
        text-align: center;
        /* Center on mobile */
        padding: 0 10px;
    }

    header {
        position: relative;
    }

    main {
        padding-top: 0 !important;
        /* No padding needed for sticky header */
    }

    .eu-logos img {
        padding: 0 !important;
        width: 100% !important;
        transform: scale(1.60);
        transform-origin: center;
        margin: 5px 0;
    }

    .intro,
    .stats,
    .benefits,
    .standards,
    .cta-contact {
        padding: 50px 0 !important;
    }

    /* Force Grids to Stack */
    .footer-content,
    .owners-grid,
    .benefits>.container>div,
    .cta-contact>.container>div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Fallback for inline style grids */
    .container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .stat-card h3 {
        font-size: 2.5rem !important;
    }

    .feature,
    .stat-card,
    .feature-card {
        padding: 25px;
    }

    /* EU Bar Mobile */
    .eu-bar {
        padding: 30px 15px;
        gap: 30px;
    }
}

/* Legal Pages */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.legal-page h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.legal-page h2 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.legal-page h3 {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.legal-page p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

.legal-page ul,
.legal-page ol {
    margin: 15px 0;
    padding-left: 30px;
    list-style-type: disc;
}

.legal-page li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #555;
}

.legal-page strong {
    color: #333;
}

.legal-page .update-date {
    font-style: italic;
    color: #888;
    margin-bottom: 30px;
}

.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.legal-page table th,
.legal-page table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.legal-page table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* Lenis */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}