:root {
    --navy: #0B1F3A;
    --orange: #FF6B00;
    --white: #FFFFFF;
    --text: #1E2A3B;
    --muted: #64748B;
    --bg-soft: #F4F7FB;
    --line: #dfe7f2;
    --shadow: 0 14px 34px rgba(11, 31, 58, 0.12);
    --shadow-soft: 0 6px 18px rgba(11, 31, 58, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Poppins", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-soft);
}

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.15;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    margin-bottom: 1.25rem;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 60ch;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e6ebf3;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(11, 31, 58, 0.05);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--navy);
    transition: transform 0.2s ease;
}

.brand:hover {
    transform: translateY(-1px);
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dfe6f1;
    box-shadow: 0 6px 14px rgba(11, 31, 58, 0.16);
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.brand-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.35px;
    color: #4c5f79;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.main-nav a {
    color: var(--navy);
    font-weight: 600;
    padding: 0.55rem 0.35rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--orange);
    border-color: var(--orange);
    transform: translateY(-1px);
}

.nav-portal-btn {
    border: 1px solid rgba(11, 31, 58, 0.18);
    border-radius: 999px;
    padding: 0.45rem 0.85rem !important;
    border-bottom: 1px solid rgba(11, 31, 58, 0.18) !important;
    background: rgba(255, 107, 0, 0.08);
}

.nav-portal-btn:hover,
.nav-portal-btn.active {
    background: var(--orange);
    color: var(--white) !important;
    border-color: var(--orange) !important;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 0.25rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: var(--navy);
    border-radius: 4px;
}

.hero {
    background-color: #e8edf5;
    background-image:
        linear-gradient(to right, rgba(232, 237, 245, 0.92) 0%, rgba(232, 237, 245, 0.82) 52%, rgba(232, 237, 245, 0.45) 74%, rgba(232, 237, 245, 0.2) 100%),
        url("/assets/images/home.jpg");
    background-repeat: no-repeat, no-repeat;
    background-position: left top, right center;
    background-size: auto, cover;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.6rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(255, 107, 0, 0.12);
    color: var(--orange);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.35rem;
}

.btn {
    display: inline-block;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.78rem 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.btn-primary {
    background: linear-gradient(135deg, #ff7f2f 0%, var(--orange) 65%);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(255, 107, 0, 0.24);
}

.btn-outline {
    border: 1px solid rgba(11, 31, 58, 0.32);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.72);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(11, 31, 58, 0.14);
    border-color: #cfdae8;
}

.hero-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.page-hero {
    background: var(--bg-soft);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.section h2 {
    position: relative;
    width: fit-content;
    padding-bottom: 0.45rem;
}

.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange) 0%, #ffb27e 100%);
}

.about-hero {
    background-color: #c9ced8;
    background-image:
        linear-gradient(to right, rgba(201, 206, 216, 0.96) 0%, rgba(201, 206, 216, 0.92) 55%, rgba(201, 206, 216, 0.58) 72%, rgba(201, 206, 216, 0.16) 100%),
        url("/assets/images/Coach.jpeg");
    background-repeat: no-repeat, no-repeat;
    background-position: left top, right center;
    background-size: auto, 320px auto;
}

.about-hero h1 {
    color: #0b1f3a;
}

.about-hero .lead {
    color: #1f2f45;
    font-weight: 500;
}

.steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

label {
    display: block;
    margin-top: 0.9rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--navy);
}

input,
textarea {
    width: 100%;
    border: 1px solid #cfd9e8;
    border-radius: 12px;
    padding: 0.78rem 0.92rem;
    font: inherit;
    background: #fbfdff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.alert {
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
}

.alert.success {
    background: #e7f8ec;
    color: #0f7132;
}

.alert.error {
    background: #fdecea;
    color: #9c1c1c;
}

.section-cta {
    padding-top: 1rem;
}

.cta-box {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    border-radius: 20px;
    padding: 2.2rem 1.3rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-box h2,
.cta-box p {
    color: var(--white);
}

.site-footer {
    background: linear-gradient(180deg, #081529 0%, #061123 100%);
    color: #c9d4e3;
    padding-top: 2.5rem;
}

.site-footer h3,
.site-footer h4,
.site-footer a {
    color: var(--white);
}

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

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1.4rem;
    padding: 1rem 0;
    text-align: center;
}

.floating-btn {
    position: fixed;
    right: 1rem;
    border-radius: 999px;
    color: var(--white);
    font-weight: 700;
    padding: 0.65rem 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
    z-index: 990;
}

.whatsapp-btn {
    bottom: 5rem;
    background: #25D366;
}

.call-btn {
    bottom: 1.4rem;
    background: var(--orange);
}

.error-text {
    color: #9c1c1c;
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.reveal-box {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
}

.reveal-box.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-box,
    .reveal-box.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .card-grid,
    .three-cols,
    .steps,
    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4.2rem 0;
    }
}

@media (max-width: 760px) {
    .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .brand-name {
        font-size: 0.82rem;
    }

    .brand-tagline {
        font-size: 0.62rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        background: var(--white);
        border-bottom: 1px solid #e6ebf3;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        display: none;
    }

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

    .main-nav a {
        padding: 0.9rem 4%;
        border-bottom: 1px solid #edf1f7;
    }

    .floating-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }

    .about-hero {
        background-color: #c9ced8;
        background-image:
            linear-gradient(to bottom, rgba(201, 206, 216, 0.86) 0%, rgba(201, 206, 216, 0.86) 100%),
            url("/assets/images/Coach.jpeg");
        background-repeat: no-repeat, no-repeat;
        background-position: center center, 68% 18%;
        background-size: cover, cover;
    }

    .hero {
        background-image:
            linear-gradient(to bottom, rgba(232, 237, 245, 0.9) 0%, rgba(232, 237, 245, 0.84) 100%),
            url("/assets/images/home.jpg");
        background-position: center center, 58% center;
        background-size: cover, cover;
    }
}

/* --- Dashboard (PHP / MySQL app layer) --- */
.dash-body {
    background: var(--bg-soft);
}

.dash-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.dash-sidebar {
    background: var(--navy);
    color: #dbe6f5;
    padding: 1.5rem 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-role {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.65);
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dash-nav a {
    color: #dbe6f5;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-weight: 600;
}

.dash-nav a:hover,
.dash-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dash-main {
    background: linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
}

.dash-content {
    padding: 2rem min(4vw, 2.5rem) 3rem;
    max-width: 1100px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.dash-stat {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0.35rem 0 0;
}

.dash-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line, #dfe7f2);
    background: var(--white);
    box-shadow: var(--shadow-soft, 0 6px 18px rgba(11, 31, 58, 0.08));
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.dash-table th,
.dash-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e8edf5;
    text-align: left;
    vertical-align: top;
}

.dash-table th {
    background: #f6f8fc;
    font-weight: 700;
    color: var(--navy);
}

.dash-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(11, 31, 58, 0.06);
    font-weight: 600;
    font-size: 0.82rem;
}

.dash-muted {
    color: var(--muted);
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .dash-shell {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .dash-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.dash-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.dash-brand-text {
    letter-spacing: 0.04em;
}

.dash-user-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1.25rem;
}

.dash-user-name {
    margin: 0;
    font-weight: 700;
    color: var(--white);
}

.dash-nav-label {
    display: block;
    margin: 0.85rem 0 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem min(4vw, 2.5rem) 0.5rem;
    border-bottom: 1px solid #e6ebf3;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
}

.dash-topbar-eyebrow {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.dash-topbar-title {
    margin: 0.15rem 0 0;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.dash-topbar-sub {
    margin: 0.35rem 0 0;
    color: var(--muted);
    max-width: 62ch;
}

.dash-topbar-btn {
    white-space: nowrap;
}

.dash-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
}

.dash-panel-spaced {
    margin-top: 1.25rem;
}

.dash-panel-narrow {
    max-width: 640px;
}

.dash-panel-head {
    margin-bottom: 1rem;
}

.dash-panel-head h2 {
    margin-bottom: 0.25rem;
}

.dash-panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.dash-actions {
    margin-bottom: 1rem;
}

.dash-stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem;
    box-shadow: var(--shadow-soft);
}

.dash-stat-card-accent {
    border-color: rgba(255, 107, 0, 0.35);
    background: linear-gradient(180deg, #fff8f3 0%, #ffffff 100%);
}

.dash-stat-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-pill-success {
    background: #e7f8ec;
    color: #0f7132;
}

.dash-pill-warn {
    background: #fff4e5;
    color: #9a5b00;
}

.dash-pill-danger {
    background: #fdecea;
    color: #9c1c1c;
}

.dash-empty {
    text-align: center;
    padding: 2rem 1rem !important;
    color: var(--muted);
}

.dash-code {
    font-size: 0.78rem;
    word-break: break-all;
}

.dash-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.dash-quick-link {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 600;
    color: var(--navy);
    background: #f8fafc;
}

.dash-quick-link:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.dash-menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    color: var(--navy);
    line-height: 0;
}

.dash-menu-icon {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
}

.dash-menu-icon::before,
.dash-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.dash-menu-icon::before {
    top: -6px;
}

.dash-menu-icon::after {
    top: 6px;
}

@media (max-width: 900px) {
    .dash-menu-toggle {
        display: inline-block;
    }
}
