/* General Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #3a3a3c;
    background-color: #ffffff;
}

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

h1, h2, h3 {
    color: #2B58C1; /* Primary Blue */
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 { font-size: 3em; }
h2 { font-size: 2.2em; }
p { margin-bottom: 10px; }

a {
    color: #2B58C1;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #48A6D8; /* Primary Blue */
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #1F3768; /* Secondary Blue */
    text-decoration: none;
}

.btn-secondary {
    background-color: #FFC107;
    color: #ffffff;
    border: 2px solid #ffffff;
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.btn-cta {
    background-color: #FFC107; /* Accent Color */
    color: #ffffff;
    margin-left: 20px;
    white-space: nowrap;
}
.btn-cta:hover {
    background-color: #e0a800;
    color: #3a3a3c;
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: #ffffff; /* White background */
    color: #3a3a3c;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.navbar .logo img {
    height: 100px; /* Adjust logo size */
    filter: none; /* Remove filter for white background */
}

.navbar nav {
    display: flex;
    align-items: center;
    transform: translateY(-2px); /* Align with 'Matter Advantage' text in logo */
}

.navbar nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar nav > ul > li {
    margin-right: 25px;
}

.navbar nav > ul > li > a {
    color: #3a3a3c;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.navbar nav > ul > li > a:hover {
    color: #FFC107; /* Accent on hover */
    text-decoration: none;
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0; /* Reset padding for link */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 8px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #3a3a3c;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.dropdown-item:hover {
    background-color: #F5F5F5;
    text-decoration: none;
    color: #FFC107;
}

/* Hero Trust */
.hero-section-trust {
    position: relative;
    height: 40vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    color: #ffffff;
    text-align: left;
    overflow: hidden; /* For background management */
}

.hero-section-trust .container {
    max-width: 1100px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 190px;
    z-index: 1; /* Ensure content is above background */
}

.hero-section-trust h1 {
    color: #ffffff;
    font-size: 3.8em;
    margin-bottom: 10px;
}

.hero-section-trust .container .subtitle {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.hero-section-trust .container  p:last-of-type { /* The descriptive paragraph */
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 0px 0;
    opacity: 0.9;
}


/* Hero Section */
#hero {
    scroll-margin-top: 150px; /* adjust to height of your sticky header */
}
.hero-section {
    position: relative;
    height: 80vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    color: #ffffff;
    text-align: left;
    overflow: hidden; /* For background management */
}

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

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

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.80), rgba(0,0,0,0.80));
    z-index: 1;
}

.hero-section .container {
    max-width: 1100px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 190px;
    z-index: 1; /* Ensure content is above background */
}

.hero-section h1 {
    color: #ffffff;
    font-size: 3.8em;
    margin-bottom: 20px;
}

.hero-section .subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
}

.hero-section p:last-of-type { /* The descriptive paragraph */
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 40px 0;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.hero-actions .btn {
    margin: 0;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.about-section {
    background-color: #F5F5F5; /* Light Gray */
    text-align: center;
}

.about-section h2 {
    color: #1F3768;
    margin-bottom: 25px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
}

.product-section {
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}
.product-section:nth-child(even) { /* Alternate background for better visual separation */
    background-color: #FDFDFD;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-header {
    text-align: center;
    margin-bottom: 20px;
}

.product-header h2 {
    color: #1F3768;
    margin-bottom: 15px;
    font-size: 2.5em;
}

.product-header .tagline {
    font-weight: bold;
    color: #48A6D8;
    font-size: 1.3em;
    margin-bottom: 0;
}

.product-image {
    text-align: center;
    margin: 0 auto 20px;
}

.product-image img {
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.product-detail-section {
    padding: 0;
}

.product-detail-section h3 {
    color: #1F3768;
    font-size: 1.4em;
    margin-bottom: 15px;
    margin-top: 0;
}

.product-detail-section p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

.product-detail-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.product-detail-section ul li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.product-cta {
    text-align: center;
    margin-top: 40px;
}

/* Legacy support for old product sections */
.product-text {
    width: 100%;
}

.product-text h2 {
    color: #1F3768;
    margin-bottom: 15px;
}

.product-text p:first-of-type {
    font-weight: bold;
    color: #48A6D8;
    font-size: 1.1em;
}

.product-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.product-text ul li {
    margin-bottom: 5px;
}

/* Contact Section */
.contact-section {
    background-color: #48A6D8; /* Primary Blue */
    color: #ffffff;
    text-align: center;
    padding-bottom: 50px; /* Adjust for form */
}

.contact-section h2 {
    color: #ffffff;
    margin-bottom: 25px;
}

.contact-section p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #3a3a3c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    color: #3a3a3c;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-cta {
    width: 100%;
    margin-left: 0;
    padding: 15px;
    font-size: 1.1em;
}

.contact-info {
    margin-top: 30px;
    font-size: 1.1em;
}
.contact-info a {
    color: #1F3768; /* Accent for contact link */
    font-weight: bold;
}
.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #1a3a73; /* Darker blue */
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: #ffffff;
    margin: 0 10px;
}
.footer-links a:hover {
    color: #FFC107;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    .navbar nav {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
    .navbar nav ul {
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }
    .navbar nav ul li {
        margin: 10px 0;
    }
    .btn-cta {
        margin-left: 0;
    }

    /* Mobile dropdown: adjust width for smaller screens */
    .dropdown-menu {
        min-width: 180px;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section .subtitle {
        font-size: 1.2em;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .hero-actions .btn {
        margin: 0;
    }

    .product-content {
        flex-direction: column;
    }
    .product-section.reverse .product-content {
        flex-direction: column; /* Keep column order for mobile */
    }
    .product-image {
        margin-top: 30px;
    }
}

    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    .btn { padding: 10px 20px; }
}

/* Trust Center Page Styles */
.trust-hero {
    background: linear-gradient(135deg, #2B58C1 0%, #1F3768 100%);
    color: #ffffff;
    padding: 100px 0 80px 0;
    text-align: center;
}

.trust-hero h1 {
    color: #ffffff;
    font-size: 3.5em;
    margin-bottom: 20px;
}

.trust-hero .subtitle {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

.trust-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.trust-section h2 {
    color: #1F3768;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.trust-section > .container > p {
    max-width: 900px;
    font-size: 1.1em;
    margin-bottom: 50px;
    line-height: 1.8;
}

.compliance-card {
    background-color: #F5F5F5;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.compliance-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.compliance-text {
    flex: 2;
}

.compliance-text h3 {
    color: #1F3768;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.compliance-text p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #3a3a3c;
}

.compliance-logo {
    flex: 1;
    text-align: center;
}

.compliance-logo img {
    max-width: 200px;
    height: auto;
}

.downloads-section {
    padding: 80px 0;
    background-color: #F5F5F5;
}

.downloads-section h2 {
    color: #1F3768;
    margin-bottom: 15px;
    font-size: 2.5em;
}

.downloads-section .section-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #3a3a3c;
}

.download-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.download-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.download-card h3 {
    color: #1F3768;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.download-card p {
    flex: 1;
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #3a3a3c;
}

.download-card a[href^="mailto"] {
    color: #2B58C1;
    font-weight: 500;
}

.download-card a[href^="mailto"]:hover {
    color: #FFC107;
}

.download-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Trust Center Responsive */
@media (max-width: 768px) {
    .trust-hero h1 {
        font-size: 2.5em;
    }

    .trust-hero .subtitle {
        font-size: 1.1em;
    }

    .compliance-content {
        flex-direction: column;
        gap: 30px;
    }

    .compliance-logo {
        order: -1;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .trust-hero {
        padding: 60px 0 50px 0;
    }

    .trust-hero h1 {
        font-size: 2em;
    }

    .trust-section h2,
    .downloads-section h2 {
        font-size: 1.8em;
    }

    .compliance-card {
        padding: 25px;
    }

    .download-card {
        padding: 20px;
    }
}
