:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --light-blue: #eff6ff;
    --white: #ffffff;
    --gray-bg: #f8fafc;
    --text-main: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--blue);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--navy);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--navy);
    background-color: var(--gray-bg);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* Top Contact Bar */
.top-contact-bar {
    background-color: var(--blue);
    color: var(--white);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.top-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 36px; /* Offset for top bar */
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--blue);
}

/* Hero Section */
.hero {
    padding: 210px 0 100px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.badge svg {
    color: var(--blue);
}

/* Trust Banner */
.trust-banner {
    background-color: var(--navy);
    color: var(--white);
    padding: 4rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.trust-item p {
    color: #94a3b8;
    margin: 0;
}

/* Directory Catalog Table */
.directory {
    padding: 6rem 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin: -1.5rem auto 3rem auto;
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: 2rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.search-bar input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead {
    background-color: var(--gray-bg);
}

th, td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

th {
    font-weight: 600;
    color: var(--navy);
}

td {
    color: var(--text-main);
}

.struct-img {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.cas-badge {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--blue);
    background-color: var(--light-blue);
    padding: 0.25em 0.5em;
    border-radius: 4px;
    display: inline-block;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--gray-bg);
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
    background: var(--gray-bg);
    border-radius: var(--radius);
    margin-top: 1rem;
}

/* About Us Section */
.about-us {
    padding: 6rem 0;
}

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

.about-card {
    background-color: var(--gray-bg);
    padding: 3rem;
    border-radius: var(--radius);
    border-top: 4px solid var(--blue);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--blue);
    box-shadow: var(--shadow-sm);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.about-card p {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.about-card .site-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: disc;
}

.about-card .site-list li {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Contact */
.contact {
    padding: 6rem 0;
    background-color: var(--navy);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
    text-align: left;
}

.contact .section-title::after {
    left: 0;
    transform: none;
    background-color: var(--blue);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-details {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-weight: 400;
    color: var(--light-blue);
}

.detail-item svg {
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    background-color: var(--gray-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--navy-light);
    color: var(--white);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .brand-name {
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact p {
    color: #94a3b8;
}

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

.footer-bottom p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-content, .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    .nav-links {
        display: none; 
    }
    .top-bar-content {
        justify-content: center;
        flex-direction: column;
        gap: 0.25rem;
    }
    .hero {
        padding: 180px 0 60px;
    }
    .hero-ctas {
        flex-direction: column;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .table-container {
        font-size: 0.875rem;
    }
    .struct-img {
        width: 60px;
        height: 60px;
    }
}
