
/* General Body Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFFFF;
    color: #333333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
}

/* Header and Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    position: fixed; /* Changed to fixed */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 64px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1F4E79;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #555555;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1F4E79;
}

/* Disabled items — kept in markup but not rendered on the live site. */
.nav-disabled {
    display: none !important;
}

/* Disabled sections — kept in markup but hidden from the live site. */
#products,
#support,
#downloads {
    display: none;
}

/* Main Content Sections */
main {
    scroll-snap-type: y mandatory; /* Enable scroll snapping */
    height: 100vh;
    overflow-y: scroll;
}

section {
    height: 100vh; /* Each section takes full viewport height */
    scroll-snap-align: start; /* Snap to the start of each section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    box-sizing: border-box;
    border-bottom: 1px solid #E0E0E0;
}

/* Specific Section Styles */
#hero {
    background-color: #F8F9FA;
}

#hero h1 {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 1rem;
    line-height: 1.2;
    color: #1F4E79;
}

#hero .subtitle {
    font-size: 1.3rem;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #1F4E79;
}

.captcha-notice {
    font-size: 0.8rem;
    color: #888888;
    margin-top: 1rem;
    text-align: center;
}

.captcha-notice a {
    color: #1F4E79;
    text-decoration: none;
}

.captcha-notice a:hover {
    text-decoration: underline;
}


/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    background-color: #F8F9FA;
    border-top: 1px solid #E0E0E0;
    /* The footer is now the last snap point */
    scroll-snap-align: start;
    height: auto; /* Footer height can be smaller */
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Simplification for mobile */
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* =====================================================================
   Section content, buttons, cards, tables and footer layout.
   ===================================================================== */

/* Contact form */
#contact p {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}
#contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
#contact input,
#contact select,
#contact textarea {
    padding: 1rem;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    background-color: #FFFFFF;
}
#contact textarea {
    min-height: 150px;
    resize: vertical;
}
#contact button {
    padding: 1rem;
    background-color: #1F4E79;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
#contact button:hover {
    background-color: #163a5a;
    transform: translateY(-2px);
}

/* Allow inner content to scroll inside a snap section when it overflows
   (e.g. Downloads tables, Products grid) without breaking scroll-snap. */
.section-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    overflow-y: auto;
    max-height: 100%;
    min-height: 0;
}

/* Buttons used in hero/products/support */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    font-family: inherit;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn-primary {
    background-color: #1F4E79;
    color: #FFFFFF;
    border-color: #1F4E79;
}
.btn-primary:hover {
    background-color: #163a5a;
    border-color: #163a5a;
    transform: translateY(-2px);
}
.btn-ghost {
    background-color: transparent;
    color: #1F4E79;
    border-color: #1F4E79;
}
.btn-ghost:hover {
    background-color: #1F4E79;
    color: #FFFFFF;
    transform: translateY(-2px);
}
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Header nav-action buttons (Login / Sign Up) */
.nav-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1.25rem;
}
.nav-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Hero CTA row */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* About — lead paragraph + stats */
#about p {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto 1rem;
    color: #555555;
}
#about .lead { color: #333333; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.stat {
    background-color: #F8F9FA;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1F4E79;
    margin-bottom: 0.35rem;
}
.stat-label {
    color: #555555;
    font-size: 0.9rem;
}

/* Ethos */
#ethos { background-color: #F8F9FA; }
.ethos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.ethos-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
}
.ethos-card h3 {
    color: #1F4E79;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.ethos-card p { margin: 0; color: #555555; }

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background-color: #F8F9FA;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 1.75rem;
    text-align: left;
}
.product-card h3 {
    color: #1F4E79;
    margin-top: 0;
    font-size: 1.4rem;
}
.product-card p { color: #555555; }
.product-card ul {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    color: #555555;
}
.product-card ul li { margin-bottom: 0.3rem; }

/* Support */
#support { background-color: #F8F9FA; }
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.support-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 1.5rem;
}
.support-card h3 {
    color: #1F4E79;
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
}
.support-card p { margin: 0; color: #555555; }

.support-cta {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 2rem;
}
.support-cta h3 {
    color: #1F4E79;
    margin-top: 0;
    font-size: 1.4rem;
}
.support-cta p {
    color: #555555;
    margin: 0.5rem 0 1.25rem;
}

/* Downloads */
.downloads-subhead {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1F4E79;
    font-size: 1.2rem;
}
.table-wrap {
    overflow-x: auto;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.downloads-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    text-align: left;
}
.downloads-table th,
.downloads-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #E0E0E0;
}
.downloads-table th {
    background-color: #F8F9FA;
    color: #1F4E79;
    font-weight: bold;
}
.downloads-table tr:last-child td { border-bottom: none; }

/* Footer expanded content */
footer:has(.footer-inner) {
    display: block;
    text-align: left;
    padding: 3rem 2rem 1.5rem;
    min-height: 0;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 3fr;
    gap: 2.5rem;
}
.footer-brand p {
    margin-top: 0.75rem;
    color: #555555;
    max-width: 320px;
}
.footer-logo-img { height: 48px; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.footer-col h4 {
    color: #1F4E79;
    margin: 0 0 0.6rem;
    font-size: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a {
    color: #555555;
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-col a:hover { color: #1F4E79; }
.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid #E0E0E0;
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
    color: #888888;
    font-size: 0.9rem;
}

/* Responsive additions */
@media (max-width: 960px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-actions { display: none; }
    .hero-cta .btn { width: 100%; max-width: 280px; }
}
@media (max-width: 480px) {
    .footer-cols { grid-template-columns: 1fr; }
}
