/* =====================================================
   COMEPAY WEBSITE
   Main Stylesheet
   Theme: Red + Yellow + Blue
   ===================================================== */

:root {
    --red: #ed1b24;
    --red-dark: #c8101e;
    --red-light: #fff0f1;

    --yellow: #ffc400;
    --yellow-dark: #d99f00;
    --yellow-light: #fff9dc;

    --blue: #005baa;
    --blue-dark: #004582;
    --blue-light: #eef7ff;

    --dark: #101828;
    --text: #475467;
    --muted: #667085;

    --white: #ffffff;
    --background: #f7f9fc;
    --border: #e4e7ec;

    --shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
    --shadow-hover: 0 15px 40px rgba(16, 24, 40, 0.13);

    --radius: 18px;
    --max-width: 1100px;
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

/* CONTAINER */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: auto;
    padding: 0 20px;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;

    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);

    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

/* LOGO */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--blue-dark);

    font-size: 23px;
    font-weight: 800;
}

.brand img {
    width: 50px;
    height: 50px;

    object-fit: cover;
    border-radius: 50%;
}

/* NAVIGATION */

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;
    gap: 6px;

    padding-bottom: 12px;
}

.main-menu a {
    padding: 7px 12px;

    color: #344054;

    font-size: 14px;
    font-weight: 700;

    border-radius: 20px;

    transition: 0.2s ease;
}

.main-menu a:hover {
    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-dark)
        );
}

/* MENU BUTTON */

.menu-toggle {
    display: none;

    width: 44px;
    height: 42px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    margin: 4px auto;

    background: #fff;
}

/* MAIN */

main {
    min-height: 60vh;
}

.page-container {
    max-width: 1000px;
    margin: auto;

    padding:
        25px 20px 60px;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;

    margin-bottom: 25px;
    padding: 50px 25px;

    text-align: center;

    border: 1px solid rgba(255, 196, 0, 0.35);
    border-radius: 28px;

    background:
        radial-gradient(
            circle at top,
            #fff5b8 0%,
            #fff9df 25%,
            #eef7ff 70%,
            #ffffff 100%
        );

    box-shadow: var(--shadow);
}

.hero-logo {
    width: 190px;
    height: 190px;

    margin: 0 auto 20px;

    display: block;

    object-fit: cover;
    border-radius: 50%;

    box-shadow:
        0 12px 35px rgba(0, 91, 170, 0.18);
}

.hero-badge {
    display: inline-block;

    margin-bottom: 15px;
    padding: 7px 15px;

    border-radius: 30px;

    background: #fff;
    border: 1px solid rgba(237, 27, 36, 0.25);

    color: var(--red-dark);

    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 15px;

    color: var(--dark);

    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.2;
}

.hero h1::after {
    content: "";

    display: block;

    width: 75px;
    height: 4px;

    margin: 16px auto 0;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--red),
            var(--yellow),
            var(--blue)
        );
}

.hero-text {
    max-width: 760px;

    margin: 20px auto;

    font-size: 16px;
    color: var(--muted);
}

/* BUTTONS */

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 22px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 11px 20px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 800;

    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-red {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );
}

.btn-blue {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-dark)
        );
}

.btn-yellow {
    color: #111827;

    background:
        linear-gradient(
            135deg,
            #ffd83d,
            var(--yellow)
        );
}

.btn-outline {
    color: var(--blue-dark);

    background: #fff;

    border: 1px solid var(--blue);
}

/* CONTENT CARD */

.card {
    margin-bottom: 20px;
    padding: 28px 25px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* HEADINGS */

.card h2 {
    margin-bottom: 14px;

    color: var(--dark);

    font-size: clamp(22px, 4vw, 30px);
}

.card h3 {
    margin: 22px 0 10px;

    color: var(--blue-dark);

    font-size: 19px;
}

.card p {
    margin-bottom: 14px;

    font-size: 15px;
}

.card ul,
.card ol {
    padding-left: 22px;
}

.card li {
    margin-bottom: 8px;
}

/* GRID */

.grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-top: 20px;
}

.grid-box {
    padding: 20px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f4f9ff
        );

    border: 1px solid var(--border);
    border-radius: 15px;

    transition: 0.2s ease;
}

.grid-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.grid-box h3 {
    margin: 0 0 8px;

    color: var(--blue-dark);
}

.grid-box p {
    margin: 0;

    font-size: 13px;
}

/* NOTICE */

.notice {
    margin-top: 20px;
    padding: 17px 18px;

    border-left: 5px solid var(--yellow);
    border-radius: 10px;

    background: var(--yellow-light);
}

.notice strong {
    display: block;
    margin-bottom: 5px;

    color: #8a6500;
}

/* FAQ */

.faq details {
    margin-bottom: 10px;

    overflow: hidden;

    background: #f9fafb;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.faq summary {
    padding: 15px 18px;

    color: var(--blue-dark);

    font-size: 15px;
    font-weight: 800;

    cursor: pointer;
}

.faq details p {
    padding: 0 18px 16px;

    font-size: 14px;
}

/* FOOTER */

.site-footer {
    margin-top: 20px;

    background:
        linear-gradient(
            135deg,
            #062d5c,
            #005baa
        );

    color: #fff;
}

.footer-inner {
    max-width: var(--max-width);

    margin: auto;

    padding:
        40px 20px 20px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 14px;

    padding-bottom: 22px;

    border-bottom:
        1px solid rgba(255,255,255,0.15);
}

.footer-brand img {
    width: 58px;
    height: 58px;

    object-fit: cover;
    border-radius: 50%;
}

.footer-brand h3 {
    margin-bottom: 4px;

    font-size: 22px;
}

.footer-brand p {
    margin: 0;

    color: rgba(255,255,255,0.75);

    font-size: 13px;
}

.footer-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px 18px;

    padding: 22px 0;
}

.footer-links a {
    color: rgba(255,255,255,0.82);

    font-size: 13px;
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-bottom {
    padding-top: 17px;

    border-top:
        1px solid rgba(255,255,255,0.12);

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    color: rgba(255,255,255,0.65);

    font-size: 12px;
}

/* MOBILE */

@media (max-width: 700px) {

    .header-inner {
        min-height: 65px;
    }

    .brand {
        font-size: 20px;
    }

    .brand img {
        width: 45px;
        height: 45px;
    }

    .menu-toggle {
        display: block;
    }

    .main-menu {
        display: none;

        flex-direction: column;
        align-items: stretch;

        padding: 8px 14px 14px;

        background: #fff;

        border-top:
            1px solid var(--border);
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu a {
        width: 100%;

        padding: 11px 13px;

        background: #f7f9fc;

        border-radius: 9px;
    }

    .page-container {
        padding: 15px 12px 40px;
    }

    .hero {
        padding: 32px 15px;
        border-radius: 21px;
    }

    .hero-logo {
        width: 155px;
        height: 155px;
    }

    .hero-text {
        font-size: 14px;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons .btn {
        width: 100%;
    }

    .card {
        padding: 22px 16px;
        border-radius: 17px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}