/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

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

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

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

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #10b981;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-primary:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: #10b981;
    border-color: #10b981;
}

.btn-secondary:hover {
    background-color: #ecfdf5;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #10b981;
    border-color: #10b981;
}

.btn-outline:hover {
    background-color: #10b981;
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}


.brand-link {
    display: flex;
    align-items: center;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.25rem;
    gap: 0.5rem;
    min-width: 0;
}

.logo {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}


.brand-text {
    display: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10rem;
}

@media (min-width: 640px) {
    .brand-text {
        display: inline-block;
        margin-left: 0.25rem;
        max-width: 14rem;
    }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    width: 1.5rem;
    height: 1.5rem;
    justify-content: space-around;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    width: 100%;
    height: 2px;
    background-color: #1f2937;
    transition: all 0.3s ease;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    display: none;
    flex-direction: column;
    padding: 1rem;
}

.nav-menu.active {
    display: flex;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        background: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: row;
        padding: 0;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    padding: 0.5rem 0;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #10b981;
}

@media (min-width: 768px) {
    .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.75rem;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #4b5563;
    transition: background-color 0.2s ease;
}

.dropdown-link:hover {
    background-color: #f3f4f6;
    color: #10b981;
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.5rem 0;
    border: none;
}

.dropdown-all {
    color: #10b981 !important;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.benefit-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.benefit-card h3 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Sections */
.features, .popular-states {
    padding: 5rem 0;
}

.features {
    background-color: #f9fafb;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-image {
    height: 200px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.feature-content p {
    color: #6b7280;
}

/* States Grid */
.states-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

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

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

.state-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
}

.state-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.state-card h3 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.state-card p {
    color: #10b981;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #10b981;
}

.footer-brand p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #10b981;
}

.footer-column a {
    display: block;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #10b981;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Loading and Performance */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== Modern Landing Page Refresh ===== */
.hero-modern {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    background: radial-gradient(circle at top left, #ecfdf5 0%, transparent 55%), linear-gradient(135deg, #0f766e 0%, #134e4a 45%, #083344 100%);
    color: #f8fafc;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.55), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.35), transparent 60%),
                radial-gradient(circle at 70% 75%, rgba(14, 116, 144, 0.6), transparent 60%);
    opacity: 0.6;
    filter: blur(20px);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

.hero-text h1 {
    font-size: clamp(2.5rem, 3.6vw, 3.75rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
    color: #f8fafc;
}

.hero-text .intro {
    max-width: 42rem;
    margin-bottom: 1.75rem;
    color: rgba(226, 232, 240, 0.92);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a7f3d0;
    margin-bottom: 0.75rem;
}

.hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    background: rgba(8, 51, 68, 0.7);
    padding: 0.75rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1 1 220px;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: rgba(2, 44, 53, 0.55);
    color: #f1f5f9;
}

.hero-search input::placeholder {
    color: rgba(148, 163, 184, 0.85);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-actions .btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: #e0f2f1;
    border-color: rgba(224, 242, 241, 0.4);
}

.hero-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-metrics {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.hero-metrics dt {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f8fafc;
}

.hero-metrics dd {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.86);
}

.hero-visual {
    position: relative;
    display: grid;
    gap: 1.25rem;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -15% -10% -10% -15%;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.35), rgba(59, 130, 246, 0.25));
    filter: blur(60px);
    border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
    z-index: -1;
}

.visual-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 45px rgba(8, 47, 73, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.75), rgba(8, 51, 68, 0.85));
    color: #f8fafc;
}

.visual-card.secondary {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.7), rgba(15, 23, 42, 0.85));
}

.visual-card h3 {
    font-size: 1.4rem;
    margin: 0.35rem 0 0.5rem;
}

.visual-meta {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.85);
}

.visual-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.4);
    color: #bbf7d0;
}

.visual-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    color: #e0f2f1;
    font-size: 0.85rem;
}

/* Trust section */
.trust-belt {
    background: #f8fafc;
    padding: 5rem 0;
}

.trust-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 960px) {
    .trust-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.trust-card h2 {
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    margin-bottom: 1rem;
    color: #0f172a;
}

.trust-card p {
    color: #475569;
}

.trust-stats {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat {
    background: white;
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.stat span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.75rem;
}

.stat p {
    color: #475569;
    font-size: 0.95rem;
}

/* Resource showcase */
.resource-showcase {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.section-heading p {
    color: #475569;
}

.resource-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.resource-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2.25rem 2rem;
    box-shadow: 0 22px 45px rgba(14, 116, 144, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.18);
}

.card-icon {
    font-size: 2rem;
}

.resource-card h3 {
    font-size: 1.35rem;
    color: #0f172a;
}

.resource-card p {
    color: #475569;
    flex: 1;
}

.card-link {
    font-weight: 600;
    color: #0f766e;
}

/* Directory preview */
.directory-preview {
    padding: 5rem 0;
    background: white;
}

.state-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.state-tile {
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.85), rgba(240, 249, 255, 0.85));
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.state-tile:hover {
    transform: translateY(-4px);
    border-color: #10b981;
}

.state-tile small {
    color: #475569;
    font-size: 0.9rem;
}

/* SEO article */
.seo-article {
    padding: 5rem 0;
    background: #f8fafc;
}

.seo-article .container {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .seo-article .container {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
        align-items: start;
    }
}

.seo-article h2,
.seo-article h3 {
    color: #0f172a;
    margin-bottom: 1rem;
}

.seo-article p,
.seo-article ul {
    color: #475569;
    margin-bottom: 1rem;
}

.seo-article ul {
    padding-left: 1.25rem;
}

/* FAQ */
.faq {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-grid details {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.faq-grid summary {
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}

.faq-grid p {
    margin-top: 0.75rem;
    color: #475569;
}

/* CTA */
.cta-final {
    background: #083344;
    padding: 4.5rem 0 5.5rem;
    color: #e0f2f1;
}

.cta-card {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.85), rgba(8, 145, 178, 0.75));
    border-radius: 1.5rem;
    padding: 3rem;
    display: grid;
    gap: 2rem;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 45px rgba(8, 51, 68, 0.45);
}

@media (min-width: 860px) {
    .cta-card {
        grid-template-columns: 1.4fr auto;
    }
}

.cta-card h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin: 0.75rem 0 1rem;
    color: #f8fafc;
}

.cta-card p {
    color: rgba(240, 253, 250, 0.85);
    max-width: 34rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.contact-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.contact-card {
    display: grid;
    gap: 2.5rem;
    padding: 3rem;
    border-radius: 1.5rem;
    background: white;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

@media (min-width: 860px) {
    .contact-card {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
}

.contact-intro h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #0f172a;
    margin-bottom: 1rem;
}

.contact-intro p {
    color: #475569;
    max-width: 40rem;
}

.contact-actions ul {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    color: #475569;
    display: grid;
    gap: 0.5rem;
}

.contact-actions ul li::before {
    content: "•";
    color: #10b981;
    margin-right: 0.5rem;
}

.contact-actions .btn {
    width: fit-content;
}

.contact-note {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1rem;
}

/* Footer tweaks */
.footer {
    background: #0f172a;
    color: #e2e8f0;
}

.footer a {
    color: #a7f3d0;
}

.footer a:hover {
    color: #f8fafc;
}

/* Responsive adjustments */
@media (max-width: 720px) {
    .hero-modern {
        padding-top: 7rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2.5rem 2rem;
    }
}

main {
    padding-top: 4.25rem;
}
