/* Serion Technology - Main Stylesheet */

/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===========================
   Skip to Content Link
   =========================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #FFD700;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* ===========================
   Header & Navigation
   =========================== */

header {
    background-color: #000;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #FFD700;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 1rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
}

/* Navigation */

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

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid #FFD700;
    color: #FFD700;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover,
.nav-toggle:focus {
    background-color: #FFD700;
    color: #000;
    outline: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.nav-menu a:hover,
.nav-menu a:focus {
    border-bottom-color: #FFD700;
    outline: none;
}

.nav-menu a.active {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

/* Mobile Navigation */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #000;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-top: 1px solid #333;
        display: none;
    }

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

    .nav-menu li {
        padding: 0 1.5rem;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
    }
}

/* ===========================
   Main Content
   =========================== */

main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Hero Section */

.hero {
    text-align: center;
    padding: 4rem 1.5rem;
    background-color: #f5f5f5;
    border-left: 5px solid #FFD700;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #000;
}

.hero .tagline {
    font-size: 1.25rem;
    color: #333;
    font-weight: 500;
    font-style: italic;
}

/* Section Styles */

section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
    border-bottom: 3px solid #FFD700;
    padding-bottom: 0.5rem;
}

section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

section p {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.125rem;
}

section ul,
section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

section li {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.125rem;
}

/* Blockquote */

blockquote {
    background-color: #f5f5f5;
    border-left: 5px solid #FFD700;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: #000;
}

/* Emphasis Box */

.emphasis-box {
    background-color: #fff9e6;
    border: 2px solid #FFD700;
    padding: 1.5rem;
    margin: 2rem 0;
}

.emphasis-box h3 {
    margin-top: 0;
    color: #000;
}

/* Links */

a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #FFD700;
    text-decoration-thickness: 2px;
}

a:hover,
a:focus {
    color: #FFD700;
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* ===========================
   Contact Form
   =========================== */

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f5f5f5;
    border: 2px solid #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #333;
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: #000;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

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

.form-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.submit-btn {
    background-color: #FFD700;
    color: #000;
    border: 2px solid #000;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s, color 0.2s;
}

.submit-btn:hover,
.submit-btn:focus {
    background-color: #000;
    color: #FFD700;
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.submit-btn:disabled {
    background-color: #999;
    color: #666;
    border-color: #666;
    cursor: not-allowed;
}

/* Form Messages */

.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid;
    font-weight: 500;
}

.form-message.success {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.form-message.error {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.form-message.hidden {
    display: none;
}

/* Inline Field Error Messages */
.error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #c62828;
    font-weight: 500;
}

.error-message[hidden] {
    display: none;
}

/* Contact Form Enhancements */
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #333;
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: #000;
}

.form-group select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.environment-section {
    margin: 1.5rem 0;
    border: 1px solid #ddd;
    padding: 1rem;
    background-color: #fafafa;
}

.environment-section summary {
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.environment-section[open] summary {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.consent-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 0.2rem;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label a {
    color: #000;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

fieldset legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Referral Source Other Field - Slide Animation */
.referral-other-container {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
    margin-top: 0;
}

.referral-other-container.visible {
    max-height: 200px;
    opacity: 1;
    margin-top: 0;
}

.referral-other-container[hidden] {
    display: block; /* Override hidden for animation */
}

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

/* File Upload Styles */
.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #333;
    background-color: #fafafa;
    width: 100%;
    cursor: pointer;
}

.form-group input[type="file"]:hover,
.form-group input[type="file"]:focus {
    border-color: #FFD700;
    background-color: #fff9e6;
}

.file-list {
    margin-top: 0.5rem;
}

.file-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: #f5f5f5;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.file-list-item .file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list-item .file-size {
    color: #666;
    margin-left: 1rem;
}

.file-list-item .remove-file {
    background: none;
    border: none;
    color: #c00;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}

.file-list-item .remove-file:hover {
    text-decoration: underline;
}

/* ===========================
   Footer
   =========================== */

footer {
    background-color: #000;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid #FFD700;
    margin-top: auto;
}

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

footer p {
    margin: 0;
    color: #999;
}

/* ===========================
   Utility Classes
   =========================== */

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

/* ===========================
   Responsive Typography
   =========================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.125rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    section h3 {
        font-size: 1.25rem;
    }

    section p,
    section li {
        font-size: 1rem;
    }

    blockquote {
        font-size: 1.125rem;
    }
}

/* ===========================
   Cookie Consent Banner
   =========================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    border-top: 3px solid #FFD700;
    padding: 1rem 1.5rem;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
    flex: 1 1 auto;
    min-width: 200px;
}

.cookie-banner a {
    color: #FFD700;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid;
    cursor: pointer;
    font-family: inherit;
    min-width: 44px;
    min-height: 44px;
    transition: background-color 0.2s, color 0.2s;
}

.cookie-btn-accept {
    background-color: #FFD700;
    color: #000;
    border-color: #FFD700;
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
    background-color: #fff;
    border-color: #fff;
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.cookie-btn-decline {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.cookie-btn-decline:hover,
.cookie-btn-decline:focus {
    background-color: #fff;
    color: #000;
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   Legal Pages (Privacy, Terms)
   =========================== */

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #FFD700;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.legal-meta {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.legal-toc {
    background-color: #f5f5f5;
    border: 2px solid #333;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.legal-toc h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.legal-toc ol {
    margin: 0;
    padding-left: 1.5rem;
}

.legal-toc li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.legal-toc a {
    text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus {
    text-decoration: underline;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #333;
}

.legal-section ul,
.legal-section ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.legal-table th,
.legal-table td {
    border: 1px solid #333;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.95rem;
}

.legal-table th {
    background-color: #000;
    color: #fff;
    font-weight: 600;
}

.legal-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.legal-contact {
    background-color: #fff9e6;
    border: 2px solid #FFD700;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.legal-contact h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-table {
        font-size: 0.85rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.5rem;
    }
}

/* ===========================
   Footer Legal Navigation
   =========================== */

.legal-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.legal-nav a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.legal-nav a:hover,
.legal-nav a:focus {
    color: #FFD700;
    text-decoration: underline;
}

.legal-nav span {
    color: #666;
}

/* ===========================
   Lead Qualification Section
   =========================== */

.qualification-section {
    background: #f5f5f5;
    padding: 2rem;
    margin-bottom: 3rem;
    border-left: 4px solid #000;
}

.qualification-section h2 {
    margin-top: 0;
}

.qualification-section > p {
    margin-bottom: 1.5rem;
}

.qualification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.qualification-column {
    padding: 1.5rem;
}

.qualification-column.good-fit {
    border: 2px solid #FFD700;
    background: #fff;
}

.qualification-column.not-fit {
    border: 2px solid #e8e8e8;
    background: #fafafa;
}

.qualification-column h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.qualification-column ul {
    margin-left: 1.5rem;
    list-style-type: disc;
}

.qualification-column li {
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.qualification-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.qualification-callout {
    background: #000;
    color: #FFD700;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    font-size: 1.1rem;
}

.qualification-callout p {
    margin: 0;
}

.qualification-next-steps {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.qualification-next-steps h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.qualification-next-steps p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .qualification-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    header,
    footer,
    .nav-toggle {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
        color: #000;
    }
}
