/* ============================================================
   SQFT Calculator V2 — About Us Page (aboutUs.php)
   Extracted from src/aboutUs.php
   ============================================================ */

:root {
    --a-bg-1: #dbe6f8;
    --a-bg-2: #eff4fc;
    --a-surface: #ffffff;
    --a-border: #d7e1f0;
    --a-text: #15203a;
    --a-muted: #4e5e7f;
    --a-blue: #2b5cb5;
    --a-blue-dark: #224894;
    --a-accent: #f0c84a;
    --a-shadow: 0 14px 34px rgba(19, 41, 86, 0.15);
    --a-shadow-soft: 0 8px 18px rgba(19, 41, 86, 0.1);
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background: radial-gradient(circle at top left, var(--a-bg-1), var(--a-bg-2));
    color: var(--a-text);
}

.about-shell {
    max-width: 1024px;
    border-radius: 18px;
    border: 1px solid var(--a-border);
    box-shadow: var(--a-shadow);
    overflow: hidden;
}

.about-top {
    background: linear-gradient(135deg, #244f9e, #153b79);
    border-radius: 12px;
    min-height: 94px;
    padding: 12px;
    box-shadow: var(--a-shadow-soft);
}

.about-top .nav-actions {
    margin-left: auto;
    gap: 10px;
}

.logo-bg {
    border-radius: 10px;
    padding: 6px;
}

.logo-img {
    height: 70px;
}

.logo-companion-img {
    height: 64px;
}

.about-copy {
    margin-top: 16px;
    text-align: center;
}

.about-copy h1 {
    margin-bottom: 6px;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.about-copy h2 {
    margin-bottom: 6px;
    color: #2f4671;
    font-weight: 600;
}

.about-copy p {
    margin: 0;
    color: var(--a-muted);
    font-size: 14px;
}

.about-sections .menu-section {
    border-radius: 14px;
    border-left-width: 6px;
    border-left-color: #62a4f2;
    box-shadow: var(--a-shadow-soft);
    background: linear-gradient(180deg, #f4f8ff, #ebf2ff);
}

.about-content {
    background: var(--a-surface);
    border: 1px solid #e2e9f6;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 22px rgba(19, 41, 86, 0.08);
}

.btn {
    border-radius: 10px;
    min-height: 44px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--a-blue);
}

.btn-primary:hover {
    background-color: var(--a-blue-dark);
}

.btn-secondary {
    background-color: #43992a;
}

.btn-secondary:hover {
    background-color: #357f21;
}

.btn-warning {
    background-color: var(--a-accent);
    color: #2f2811;
}

.btn-warning:hover {
    background-color: #ddb63e;
}

.about-table {
    border-collapse: collapse;
    width: 100%;
}

.about-table th,
.about-table td {
    border: 1px solid #cfd9eb;
    padding: 8px;
}

.about-table th {
    background: #eef4ff;
}

.support-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 18, 35, 0.45);
    z-index: 1000;
    padding: 16px;
}

.support-modal.open {
    display: flex;
}

.support-modal-card {
    width: min(460px, 100%);
    background: var(--a-surface);
    border-radius: 14px;
    border: 1px solid var(--a-border);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
    padding: 18px;
}

.support-modal-title {
    margin-top: 0;
    margin-bottom: 12px;
    color: #223355;
    font-size: 18px;
}

.support-modal-body {
    color: #32445f;
    line-height: 1.5;
    margin-bottom: 14px;
    white-space: pre-line;
    font-size: 14px;
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(37, 98, 195, 0.35);
    outline-offset: 2px;
}

body.dark-mode {
    --a-bg-1: #18233a;
    --a-bg-2: #101827;
    --a-surface: #1f293b;
    --a-border: #334155;
    --a-text: #e9f0ff;
    --a-muted: #b9c8e8;
    --a-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    --a-shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.28);
}

body.dark-mode .about-copy h2,
body.dark-mode .support-modal-title,
body.dark-mode .support-modal-body {
    color: #ccd9f4;
}

body.dark-mode .about-sections .menu-section {
    background: linear-gradient(180deg, #243246, #1d2a3f);
    border-left-color: #3f83d6;
}

body.dark-mode .about-content,
body.dark-mode .support-modal-card {
    border-color: #33445e;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

body.dark-mode .about-table th,
body.dark-mode .about-table td {
    border-color: #44536d;
}

body.dark-mode .about-table th {
    background: #283951;
}

@media (max-width: 760px) {
    .about-top {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-top .nav-actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .logo-img {
        height: 62px;
    }

    .logo-companion-img {
        height: 56px;
    }
}
