/* =====================================================
   MOTORS365 - Static Pages Styles
   ===================================================== */

/* Page Hero */
.page-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 168, 85, 0.1), transparent);
    pointer-events: none;
}

.page-hero.compact {
    padding: 8rem 0 3rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    position: relative;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Content Section */
.content-section {
    padding: 6rem 0;
}

.content-section.bg-secondary {
    background: var(--bg-secondary);
}

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

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Visual Card */
.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.visual-stat {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.visual-stat:last-child {
    border-bottom: none;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

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

/* Tech List */
.tech-list {
    list-style: none;
    margin-top: 2rem;
}

.tech-list li {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list strong {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.tech-list span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Tech Visual */
.tech-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
}

.tech-node {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tech-node.central {
    flex-direction: column;
    gap: 0.5rem;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gold-muted);
    border-color: var(--border-gold);
    color: var(--gold);
    margin-bottom: 2rem;
}

.tech-node.central svg {
    width: 32px;
    height: 32px;
}

.tech-connections {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Values Section */
.values-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.value-card:hover {
    border-color: var(--border-default);
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--gold-muted);
    border-radius: 50%;
    color: var(--gold);
}

.value-icon svg {
    width: 28px;
    height: 28px;
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--navy-900) 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(212, 168, 85, 0.1), transparent);
    pointer-events: none;
}

.cta-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

/* Contact Section */
.contact-section {
    padding: 4rem 0 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.contact-form-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-form-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.938rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-muted);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success .success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--success-muted);
    border-radius: 50%;
    color: var(--success);
}

.form-success .success-icon svg {
    width: 32px;
    height: 32px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.info-card:hover {
    border-color: var(--border-default);
}

.info-card.highlight {
    background: var(--gold-muted);
    border-color: var(--border-gold);
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--gold);
    flex-shrink: 0;
}

.info-card.highlight .info-icon {
    background: var(--gold);
    color: var(--text-inverse);
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-link {
    font-size: 0.875rem;
    color: var(--gold);
    font-weight: 500;
}

.info-link:hover {
    color: var(--gold-light);
}

/* FAQ Page */
.faq-page-section {
    padding: 4rem 0 6rem;
}

.faq-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.faq-category-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.faq-category-btn:hover {
    border-color: var(--border-default);
    color: var(--text-primary);
}

.faq-category-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--text-inverse);
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-sidebar .contact-form-card.sticky {
    position: sticky;
    top: 6rem;
}

.faq-sidebar .contact-form-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.faq-sidebar .contact-form-card > p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Legal Pages */
.legal-content {
    padding: 8rem 0 6rem;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

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

.legal-header .last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.legal-body h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.legal-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-body h3 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-body ul, .legal-body ol {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-body a {
    color: var(--gold);
}

.legal-body a:hover {
    color: var(--gold-light);
}

.legal-body code {
    background: var(--bg-elevated);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--gold);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.legal-table thead th {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-default);
}

.legal-table tbody td {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    line-height: 1.6;
    vertical-align: top;
}

.legal-table tbody tr:last-child td {
    border-bottom: none;
}

.legal-table tbody tr:hover {
    background: var(--bg-elevated);
}

@media (max-width: 768px) {
    .legal-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .legal-table thead th,
    .legal-table tbody td {
        padding: 0.5rem 0.75rem;
        font-size: 0.825rem;
    }
}

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

    .content-grid.reverse {
        direction: ltr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-sidebar .contact-form-card.sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 7rem 0 3rem;
    }

    .content-section {
        padding: 4rem 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
