:root {
    --primary-color: #4b5563;  /* Modern gray */
    --secondary-color: #111827; /* Dark modern gray */
    --accent-color: #9ca3af;   /* Light modern gray */
    --text-color: #1f2937;
    --light-text: #374151;
    --background: #ffffff;
    --section-bg: #9ca3af;     /* Very dark modern gray */
    --brand-red: #dc2626;      /* For logo and accents */
    --primary-button: #1e40af;  /* Blue for buttons */
    --primary-button-hover: #1d3f9a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header and Navigation */
.hero {
    background: var(--section-bg);
    color: var(--text-color);
    padding: 2rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.navbar {
    width: 100%;
    max-width: 1200px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--brand-red);
    position: relative;
    z-index: 1;
}

.logo-image {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.logo:hover .logo-text {
    transform: translateX(5px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
    transition: transform 0.3s ease;
}

.logo:hover .logo-text {
    transform: translateX(5px);
}

/* Adjust navbar height to accommodate larger logo */
.navbar {
    padding: 1.5rem 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Content */
.hero-content {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--brand-red);
    margin-bottom: 0.5rem;
}

.stat {
    border: 2px solid var(--brand-red);
}

.stat:hover {
    background: rgba(220, 38, 38, 0.05);
    transform: translateY(-2px);
}

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

.cta-subtext {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: center;
}

/* Animation for elements on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-button);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
}

#scrollToTopBtn:hover {
    background-color: var(--primary-button-hover);
}

/* Buttons */
.primary-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-button);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.primary-button:hover {
    background: var(--primary-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Main Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-child(even) {
    background: var(--section-bg);
}

/* Trust Builders Section */
.trust-builders {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trust-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid var(--brand-red);
}

.trust-card:hover {
    transform: translateY(-5px);
    background: rgba(220, 38, 38, 0.05);
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--brand-red);
    margin-bottom: 1rem;
}

.trust-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.trust-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* What's Included Section */
.what-included {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.included-item {
    text-align: center;
    padding: 2rem;
}

.included-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.included-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Why Legal Section */
.why-legal {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid var(--brand-red);
}

.why-item:hover {
    transform: translateY(-5px);
    background: rgba(220, 38, 38, 0.05);
}

.why-icon {
    font-size: 2.5rem;
    color: var(--brand-red);
    margin-bottom: 1rem;
}

.why-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid var(--brand-red);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(220, 38, 38, 0.05);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--brand-red);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--light-text);
    line-height: 1.6;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

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

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
