/* ============================================
   Dependability Holdings LLC - Main Stylesheet
   ============================================ */

/* Variables */
:root {
    --bg: #0a1117;
    --surface: #111922;
    --surface-2: #162030;
    --border: #1e2d3d;
    --text: #e8edf2;
    --text-dim: #8899aa;
    --accent: #3ecf8e;
    --accent-dim: #2a9d6e;
    --accent-bg: rgba(62, 207, 142, 0.08);
    --warning: #f5a623;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --max-width: 800px;
    --radius: 8px;
    --radius-lg: 12px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #5ee0b0; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-dim); }
p:last-child { margin-bottom: 0; }

.text-accent { color: var(--accent); }

/* Header & Navigation */
header {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

.logo-accent { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text);
    background: var(--surface);
}

.nav-links a.active { color: var(--accent); }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: #0a1117;
}
.btn-primary:hover { background: #5ee0b0; color: #0a1117; }

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-accent {
    background: var(--accent);
    color: #0a1117;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
}
.btn-accent:hover { background: #5ee0b0; color: #0a1117; }

.btn-full { width: 100%; }

/* Hero */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(62, 207, 142, 0.2);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 2rem;
    color: var(--text-dim);
    line-height: 1.8;
}

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

/* Stats */
.stats-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    padding: 1rem 0.5rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sections */
.features-section, .content-section, .info-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-dim); font-size: 1rem; }

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

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

/* CTA */
.cta-section { padding: 2rem 0; }

.cta-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
}

.cta-box h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.cta-box p { color: var(--text-dim); margin-bottom: 1.5rem; }

/* Info Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.info-block h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.info-block p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Page Hero */
.page-hero {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.page-hero-sub {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* Content Block */
.content-block {
    margin-bottom: 2.5rem;
}

.content-block h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.content-block > p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Info Box */
.info-box-section { padding: 2rem 0; }

.info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.info-box h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--text); }
.info-box p { font-size: 0.875rem; line-height: 1.7; }

/* Principles List */
.principle-list { margin: 2rem 0; }

.principle-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.principle-item:last-child { border-bottom: none; }

.principle-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--border);
    flex-shrink: 0;
    width: 2.5rem;
    line-height: 1;
    padding-top: 0.2rem;
}

.principle-content h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.principle-content p {
    font-size: 0.9rem;
    line-height: 1.75;
}

/* Philosophy Quote */
.highlight-section { padding: 2rem 0; }

.philosophy-quote {
    border-left: 3px solid var(--accent);
    padding: 1.5rem 2rem;
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.philosophy-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

/* FAQ */
.faq-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }
.faq-item h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.875rem; line-height: 1.7; }

/* Content List */
.content-list { list-style: none; margin: 1rem 0; }

.content-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.content-list li:last-child { border-bottom: none; }
.content-list li strong { color: var(--text); }

/* Diff Grid */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.diff-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.diff-item h3 { font-size: 0.9rem; color: var(--text); margin-bottom: 0.5rem; }
.diff-item p { font-size: 0.8rem; line-height: 1.65; }

/* Resource Cards */
.resource-cards { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }

.resource-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s;
}

.resource-card:hover { border-color: var(--accent-dim); }

.resource-category {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.resource-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.resource-card > p { font-size: 0.875rem; line-height: 1.75; }

.resource-list { list-style: none; margin: 0.75rem 0; }

.resource-list li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.resource-list li:last-child { border-bottom: none; }
.resource-list li strong { color: var(--text); }

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2, .contact-form-wrapper h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.contact-info > p { font-size: 0.9rem; line-height: 1.75; margin-bottom: 2rem; }

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-detail:last-of-type { border-bottom: none; }

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail h4 { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.contact-detail p, .contact-detail a { font-size: 0.9rem; color: var(--text); margin: 0; }

.info-note {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1.5rem;
}

.info-note p { font-size: 0.8rem; line-height: 1.65; }

/* Contact Form */
.contact-form-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text);
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); opacity: 0.6; }

.form-group select { cursor: pointer; }

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

.form-error {
    display: block;
    font-size: 0.75rem;
    color: #e05555;
    margin-top: 0.3rem;
    min-height: 1rem;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #e05555; }

.form-success {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(62, 207, 142, 0.1);
    border: 1px solid rgba(62, 207, 142, 0.3);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--accent);
    margin-top: 1rem;
}

.form-success.show { display: flex; }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}

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

.footer-brand .logo { margin-bottom: 0.75rem; font-size: 1.1rem; }
.footer-brand p { font-size: 0.8rem; line-height: 1.65; margin-top: 0.5rem; }

.footer-links h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

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

.footer-bottom > p:first-child {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.72rem !important;
    color: var(--text-dim);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* AdSense Placeholder */
.ad-placeholder {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin: 1.5rem 0;
}

/* Disclaimer Section */
.disclaimer-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    padding: 2.5rem 0;
    margin: 0;
}

.disclaimer-section .container {
    max-width: 800px;
}

.disclaimer-section h3 {
    color: #1a3a2a;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.disclaimer-section p {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

.disclaimer-section p:last-child {
    margin-bottom: 0;
}

.disclaimer-section strong {
    color: #1a3a2a;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; }

    .mobile-menu-btn { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child a { border-bottom: none; }

    .hero h1 { font-size: 1.85rem; }
    .hero p { font-size: 0.95rem; }

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

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

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

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

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

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

    .footer-brand { grid-column: 1 / -1; }

    .principle-item { flex-direction: column; gap: 0.5rem; }
    .principle-number { font-size: 1.5rem; width: auto; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.25rem; }

    .hero { padding: 2.5rem 0 2rem; }
    .hero h1 { font-size: 1.65rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }

    .features-section, .content-section { padding: 2rem 0; }

    .cta-box { padding: 1.5rem 1.25rem; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }

    .contact-form-wrapper { padding: 1.25rem; }
}

/* ============================================
   Theme: Light Mode Overrides
   ============================================ */

:root[data-theme="light"] {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface-2: #eef1f5;
    --border: #dde1e7;
    --text: #1a1a2e;
    --text-dim: #5a6270;
    --accent: #3ecf8e;
    --accent-dim: #2a9d6e;
    --accent-bg: rgba(62, 207, 142, 0.1);
}

:root[data-theme="light"] body {
    background: var(--bg);
    color: var(--text);
}

:root[data-theme="light"] header {
    background: var(--bg);
    border-bottom-color: var(--border);
}

:root[data-theme="light"] .logo {
    color: var(--text);
}

:root[data-theme="light"] .nav-links a {
    color: var(--text-dim);
}

:root[data-theme="light"] .nav-links a:hover,
:root[data-theme="light"] .nav-links a.active {
    color: var(--text);
    background: var(--surface);
}

:root[data-theme="light"] .nav-links a.active {
    color: var(--accent);
}

:root[data-theme="light"] .mobile-menu-btn span {
    background: var(--text);
}

:root[data-theme="light"] .surface-card,
:root[data-theme="light"] .feature-card,
:root[data-theme="light"] .info-block,
:root[data-theme="light"] .resource-card,
:root[data-theme="light"] .contact-form-wrapper,
:root[data-theme="light"] .cta-box,
:root[data-theme="light"] .philosophy-quote {
    background: var(--surface);
    border-color: var(--border);
}

:root[data-theme="light"] .accent-bg,
:root[data-theme="light"] .hero-badge,
:root[data-theme="light"] .resource-category {
    background: rgba(62, 207, 142, 0.12);
}

:root[data-theme="light"] .info-box {
    background: var(--surface);
    border-color: var(--border);
    border-left-color: var(--accent);
}

:root[data-theme="light"] footer {
    border-top-color: var(--border);
}

:root[data-theme="light"] .footer-brand p,
:root[data-theme="light"] .footer-links a,
:root[data-theme="light"] .footer-bottom > p:first-child {
    color: var(--text-dim);
}

:root[data-theme="light"] .footer-links h4 {
    color: var(--text);
}

:root[data-theme="light"] .principle-item,
:root[data-theme="light"] .faq-item,
:root[data-theme="light"] .content-list li,
:root[data-theme="light"] .contact-detail,
:root[data-theme="light"] .stat-item {
    border-color: var(--border);
}

:root[data-theme="light"] .principle-number {
    color: var(--border);
}

:root[data-theme="light"] .contact-detail-icon {
    background: var(--surface-2);
    border-color: var(--border);
}

:root[data-theme="light"] .nav-links a {
    border-bottom-color: var(--border);
}

:root[data-theme="light"] .info-note {
    background: var(--surface-2);
    border-color: var(--border);
}

:root[data-theme="light"] .ad-placeholder {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-dim);
}

:root[data-theme="light"] .btn-secondary {
    color: var(--text);
    border-color: var(--border);
}

:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

:root[data-theme="light"] .stats-section {
    border-color: var(--border);
}

:root[data-theme="light"] .page-hero {
    border-bottom-color: var(--border);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

:root[data-theme="light"] .theme-toggle {
    color: var(--text-dim);
    border-color: var(--border);
}

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

@media print {
    body { background: white; color: black; }
    header, footer, .cta-section { display: none; }
    .container { max-width: 100%; }
}
