/* =========================================================
   APPAM SOFTWARE
   Grey / Charcoal / Orange Theme
   ========================================================= */

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #f28c28;
    --primary-dark: #d96f0b;
    --primary-light: #ffad55;

    --text: #20252b;
    --text-muted: #66707a;
    --text-light: #f1f3f4;

    --bg: #f4f5f6;
    --bg-alt: #e7e9eb;
    --surface: #ffffff;

    --charcoal: #34383d;
    --charcoal-dark: #292d31;
    --charcoal-light: #4a5056;

    --border: #d5d9dd;

    --shadow: 0 8px 28px rgba(25, 30, 35, 0.12);
    --shadow-heavy: 0 16px 45px rgba(0, 0, 0, 0.22);

    --radius: 12px;
    --header-height: 74px;
}

/* ---------- Base ---------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
        "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease,
        border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-main {
    flex: 1;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    background: var(--charcoal);
    border-bottom: 1px solid var(--charcoal-light);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.16);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    height: 52px;
    width: auto;
    max-width: min(240px, 42vw);
    object-fit: contain;
}

/* ---------- Navigation ---------- */

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 0.55rem 0.85rem;
    color: #f1f2f3;
    font-weight: 500;
    border-radius: 8px;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background: var(--charcoal-light);
}

.nav-btn {
    border: 1px solid #666c72;
}

.nav-btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}

.nav-btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff !important;
}

/* ---------- Mobile menu ---------- */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: 0.3s;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            rgba(25, 29, 33, 0.68),
            rgba(25, 29, 33, 0.68)
        ),
        url("../images/backgrounds/home.jpg") center center / cover no-repeat;

    color: #ffffff;
    padding: 6rem 0 5rem;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.12;
    margin-bottom: 1.1rem;
    color: #ffffff;
}

.hero p {
    color: #f0f2f3;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    min-height: 46px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Single primary button color */

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(242, 140, 40, 0.28);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

/* Outline button */

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 4.5rem 0;
    background: var(--bg);
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    margin-bottom: 0.75rem;
    color: var(--text);
}

.section-header p {
    color: var(--text-muted);
}

/* =========================================================
   CARDS
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(25, 30, 35, 0.16);
    border-color: #c4c9ce;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    background:
        linear-gradient(
            rgba(38, 42, 46, 0.74),
            rgba(38, 42, 46, 0.74)
        ),
        url("../images/backgrounds/about.jpg") center center / cover no-repeat;

    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #555b61;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.55rem;
    color: #ffffff;
}

.page-header p {
    color: #e5e7e9;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
    background:
        linear-gradient(
            rgba(40, 44, 48, 0.82),
            rgba(40, 44, 48, 0.82)
        ),
        url("../images/backgrounds/services.jpg") center center / cover no-repeat;

    color: #ffffff;
}

.services-section .section-header h2 {
    color: #ffffff;
}

.services-section .section-header p {
    color: #e1e3e5;
}

.services-section .card {
    background: rgba(248, 249, 250, 0.97);
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-info-card {
    background: #e5e7e9;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.contact-info-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.contact-info-card p,
.contact-info-card address {
    color: var(--text-muted);
    font-style: normal;
    margin-bottom: 0.75rem;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    background: #ffffff;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.18);
}

/* =========================================================
   FORMS
   ========================================================= */

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
    color: var(--text);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.18);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    gap: 1rem;
}

.form-row label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

/* =========================================================
   AUTH / LOGIN / SIGNUP
   ========================================================= */

.auth-section {
    padding: 4rem 0 5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;

    min-height: calc(
        100vh - var(--header-height) - 260px
    );

    background:
        linear-gradient(
            rgba(42, 46, 50, 0.74),
            rgba(42, 46, 50, 0.74)
        ),
        url("../images/backgrounds/auth.jpg") center center / cover no-repeat;

    background-attachment: fixed;
}

.auth-card {
    width: min(440px, 100%);
    background: rgba(245, 246, 247, 0.98);
    border: 1px solid #d0d4d8;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    height: 48px;
    width: auto;
}

.auth-card h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */

.about-content {
    max-width: 760px;
    margin: 0 auto;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #e5e7e9;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard {
    background:
        linear-gradient(
            rgba(39, 43, 47, 0.82),
            rgba(39, 43, 47, 0.82)
        ),
        url("../images/backgrounds/dashboard.jpg") center center / cover no-repeat;

    min-height: 100%;
    padding: 4rem 0;
}

.dashboard .card {
    background: rgba(248, 249, 250, 0.97);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--charcoal);
    color: #d8dadd;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding: 3rem 0 2rem;
}

.footer-logo {
    height: auto;
    max-height: 110px;
    max-width: 220px;
    margin-bottom: 0.75rem;
    object-fit: contain;
}

.footer-tagline {
    color: #b7bbc0;
    font-size: 0.9rem;
}

.footer-links h3,
.footer-contact h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #b7bbc0;
    display: block;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.contact-list address {
    font-style: normal;
    color: #b7bbc0;
    line-height: 1.5;
}

.contact-list a {
    color: #b7bbc0;
}

.contact-list a:hover {
    color: #ffffff;
}

.contact-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid #4a4f54;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #9da3a8;
}

/* =========================================================
   TABLES
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

th,
td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: #e5e7e9;
    color: var(--text);
    font-weight: 700;
}

tr:hover td {
    background: #f5f6f7;
}

/* =========================================================
   MISC
   ========================================================= */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    :root {
        --header-height: 68px;
    }

    .header-inner {
        min-height: var(--header-height);
    }

    .site-logo {
        height: 46px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;

        background: var(--charcoal);

        border-bottom: 1px solid var(--charcoal-light);

        padding: 1rem;

        display: none;

        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
    }

    .hero {
        min-height: 480px;
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .page-header {
        padding: 3rem 0;
    }

    .auth-section {
        padding: 2.5rem 0 3.5rem;
        background-attachment: scroll;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 480px) {

    .container {
        width: min(94%, 1120px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}