/* =========================================================
   PLANET EXPRESS - GLOBAL STYLES
   Bahamian palette: black, gold, aquamarine
   ========================================================= */

/* --------- Reset --------- */

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #050608;
    background-color: #f3f7fb;
}

/* Links */

a {
    color: #00c2d1; /* aquamarine */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Images */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Containers */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.page-header {
    margin: 1rem 0 1.5rem;
}

.page-header h2 {
    margin: 0 0 0.25rem;
}

/* Cards */

.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.card h2,
.card h3 {
    margin-top: 0;
}

/* Grids */

.card-grid,
.features-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .card-grid,
    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
    background: #000000;
    color: #f8f8f8;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #000000, #d3a528); /* black to gold */
    border-color: #d3a528;
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #000000, #b7921f);
}

.btn-secondary {
    background: #00c2d1; /* aquamarine */
    border-color: #000000;
    color: #000000;
}

.btn-secondary:hover {
    background: #00a8b6;
}

.btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

/* Alerts */

.alert {
    margin: 0.75rem 0 1rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #ffe5e5;
    color: #6f1010;
    border: 1px solid rgba(111, 16, 16, 0.25);
}

.alert-success {
    background: #e6f8ea;
    color: #165c2b;
    border: 1px solid rgba(22, 92, 43, 0.25);
}

/* Forms */

.form {
    display: grid;
    gap: 0.75rem;
}

.form label {
    font-size: 0.9rem;
    display: block;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"],
.form input[type="date"],
.form textarea,
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form textarea {
    display: block;
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    border-radius: 0.4rem;
    border: 1px solid #c7d3e0;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.form input:focus,
.form textarea:focus,
form input:focus,
form textarea:focus {
    outline: none;
    border-color: #00c2d1;
    box-shadow: 0 0 0 2px rgba(0, 194, 209, 0.35);
}

/* Tables */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

table thead {
    background: #000000;
    color: #f9f1d0; /* pale gold */
}

table th,
table td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

table tbody tr:nth-child(even) {
    background: rgba(0, 194, 209, 0.03);
}

/* Hero */

.hero {
    text-align: left;
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        #000000 0,
        #d3a528 45%,
        #00c2d1 100%
    );
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 1.7rem;
    margin: 0 0 0.5rem;
    letter-spacing: 0.08em;
}

.hero p {
    margin: 0 0 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .hero {
        padding: 2rem;
        border-radius: 1rem;
    }

    .hero h1 {
        font-size: 2.1rem;
    }
}

/* NAVBAR */

.site-header {
    background: #000000;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #ffffff;
}

.brand-mark {
    inline-size: 34px;
    block-size: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c2d1, #d3a528); /* aqua to gold */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #000000;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0.07em;
    font-size: 1rem;
}

/* Nav links */

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.site-nav li {
    display: inline-flex;
}

.nav-link {
    text-decoration: none;
    color: #f3f7fb;
    font-size: 0.9rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease,
        transform 0.1s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(0, 194, 209, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Mobile nav */

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #ffffff;
    height: 2px;
    width: 22px;
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-label span::before {
    top: -6px;
}

.nav-toggle-label span::after {
    top: 6px;
}

/* Mobile layout */

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

    .site-nav {
        width: 100%;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
        width: 100%;
    }

    .site-nav li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.6rem 0.9rem;
    }

    .nav-toggle {
        display: block;
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .nav-toggle-label {
        display: block;
    }

    .nav-toggle:checked ~ .site-nav ul {
        max-height: 400px;
    }

    .nav-toggle:checked + .nav-toggle-label span {
        transform: rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-label span::before {
        transform: rotate(90deg);
        top: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span::after {
        opacity: 0;
    }
}

/* Footer */

.site-footer {
    margin-top: 2rem;
    padding: 1rem;
    background: #000000;
    color: #f3f7fb;
    text-align: center;
    font-size: 0.85rem;
}

/* Misc */

.link {
    color: #00c2d1;
    font-size: 0.9rem;
}

.link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .card {
        padding: 0.75rem;
        border-radius: 0.6rem;
    }

    .hero {
        padding: 1.25rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }
}
