/* ========================================================
   Best Online Casino Canada — one-page directory template
   Clean, responsive CSS. No frameworks or external fonts.
   ======================================================== */

:root {
    color-scheme: light;
    --ink: #172530;
    --ink-soft: #52616c;
    --navy: #152b39;
    --navy-deep: #10232e;
    --accent: #bed8e5;
    --white: #ffffff;
    --page: #f7f9fa;
    --line: #e0e7eb;
    --line-strong: #d4dee3;
    --radius: 12px;
    --container: 1120px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.16;
    letter-spacing: -0.035em;
}

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

a:focus-visible,
summary:focus-visible {
    outline: 3px solid #87bfdc;
    outline-offset: 4px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -70px;
    left: 18px;
    z-index: 20;
    padding: 10px 16px;
    background: var(--white);
    border-radius: 6px;
}

.skip-link:focus {
    top: 12px;
}

/* Header ------------------------------------------------- */
.site-header {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 86px;
    gap: 32px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--navy);
    color: var(--white);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.07em;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name strong {
    font-size: 13px;
    letter-spacing: 0.075em;
}

.brand-name small {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.25em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 36px);
    margin-left: auto;
}

.main-nav a {
    color: #455561;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.main-nav a:hover,
.back-to-top:hover {
    color: #316a89;
}

.country-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 26px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: #40525f;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.country-flag {
    display: block;
    width: 28px;
    height: 14px;
    border: 1px solid #e5e9ed;
    border-radius: 1px;
    flex-shrink: 0;
}

.label-divider {
    padding-inline: 3px;
    color: #9cabb3;
}

/* Hero --------------------------------------------------- */
.hero-section {
    padding: 34px 0 0;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 55px;
    min-height: 400px;
    padding: 62px 64px;
    overflow: hidden;
    border-radius: 16px;
    color: var(--white);
    background: var(--navy);
    background-image: linear-gradient(112deg, #172d3b 0%, #162b39 70%, #1f3b4a 100%);
}

.eyebrow {
    display: inline-block;
    color: #4d7186;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.4;
}

.eyebrow-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #b8d2df;
}

.eyebrow-line {
    width: 20px;
    height: 1px;
    background: #92bdcf;
}

.hero-copy h1 {
    max-width: 650px;
    margin: 24px 0 18px;
    font-size: clamp(36px, 4.2vw, 60px);
    font-weight: 760;
    letter-spacing: -0.055em;
}

.hero-copy h1 span {
    display: block;
    color: var(--accent);
}

.hero-copy > p {
    max-width: 560px;
    margin-bottom: 24px;
    color: #c3d1d9;
    font-size: 15px;
    line-height: 1.75;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 4px;
    color: var(--white);
    border-bottom: 1px solid #8eacbb;
    font-size: 13px;
    font-weight: 700;
}

.hero-link:hover {
    color: #c8e3ef;
}

.hero-aside {
    padding: 28px 28px 18px;
    border: 1px solid rgba(210, 231, 240, 0.18);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
}

.aside-title {
    margin-bottom: 18px;
    color: #aac5d4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.aside-item {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid rgba(210, 231, 240, 0.16);
    color: #e0e9ed;
    font-size: 13px;
    font-weight: 550;
}

.aside-number {
    color: #89aabb;
    font-size: 11px;
    font-weight: 700;
}

/* Sections ------------------------------------------------ */
.listing-section {
    padding: 68px 0 76px;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 10px 0 12px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 750;
}

.section-heading p {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.listing-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.listing-count {
    margin-bottom: 6px;
    color: #688293;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    white-space: nowrap;
}

/* Directory rows ----------------------------------------- */
.listing-list {
    display: grid;
    gap: 12px;
}

.casino-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) minmax(180px, 220px) 152px;
    align-items: center;
    gap: 22px;
    min-height: 145px;
    padding: 23px 27px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.casino-card:hover {
    transform: translateY(-2px);
    border-color: #bfced7;
    box-shadow: 0 12px 28px rgba(20, 43, 57, 0.045);
}

.casino-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.casino-logo {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 10px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.logo-maple {
    color: #284b64;
    background: #e8f0f5;
}

.logo-aurora {
    color: #576077;
    background: #ededf4;
}

.logo-north {
    color: #355b52;
    background: #e9f1ee;
}

.logo-coast {
    color: #6a5844;
    background: #f3eee7;
}

.logo-evergreen {
    color: #4c6353;
    background: #e9f0e8;
}

.casino-number {
    color: #9aa9b2;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.card-label {
    color: #7390a0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.casino-info h3 {
    margin: 6px 0 7px;
    color: var(--ink);
    font-size: 21px;
    font-weight: 760;
}

.casino-info p {
    max-width: 420px;
    margin-bottom: 0;
    color: #63737c;
    font-size: 13px;
    line-height: 1.6;
}

.casino-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: 8px;
}

.casino-tags span {
    padding: 6px 10px;
    border: 1px solid #e3e9ec;
    border-radius: 5px;
    color: #5a6973;
    background: #f8fafb;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.visit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid var(--navy);
    border-radius: 7px;
    color: var(--white);
    background: var(--navy);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.visit-button:hover {
    border-color: #2c566e;
    background: #2c566e;
}

.visit-button span {
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.sample-note {
    margin: 20px 0 0;
    color: #667780;
    font-size: 12px;
    line-height: 1.7;
}

.sample-note strong {
    color: #465c68;
}

/* What to check ----------------------------------------- */
.criteria-section {
    padding: 70px 0 78px;
    background: #edf2f4;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.criteria-card {
    min-height: 222px;
    padding: 29px 27px;
    border: 1px solid #e1e8eb;
    border-radius: 10px;
    background: var(--white);
}

.criteria-index {
    display: inline-block;
    margin-bottom: 25px;
    color: #718d9e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.criteria-card h3 {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 750;
}

.criteria-card p {
    margin-bottom: 0;
    color: #63737c;
    font-size: 13px;
    line-height: 1.7;
}

/* FAQ ---------------------------------------------------- */
.faq-section {
    padding: 85px 0 92px;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 90px;
    align-items: start;
}

.faq-intro h2 {
    max-width: 330px;
    margin: 12px 0 14px;
    font-size: clamp(28px, 3vw, 36px);
}

.faq-intro p {
    max-width: 340px;
    color: var(--ink-soft);
    font-size: 14px;
}

.faq-list {
    border-top: 1px solid var(--line-strong);
}

.faq-list details {
    border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
    position: relative;
    display: block;
    padding: 23px 34px 23px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 22px;
    right: 3px;
    color: #55758a;
    content: "+";
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    max-width: 610px;
    margin: -3px 24px 23px 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.75;
}

/* Footer ------------------------------------------------- */
.site-footer {
    color: #dce5e9;
    background: var(--navy-deep);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
    padding-block: 39px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.footer-brand span {
    margin-left: 7px;
    color: #8eacba;
    font-size: 10px;
    letter-spacing: 0.16em;
}

.footer-top p {
    margin: 7px 0 0;
    color: #a6bac5;
    font-size: 12px;
}

.back-to-top {
    color: #dce5e9;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.back-to-top span {
    margin-left: 7px;
    font-size: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 26px;
    padding-block: 22px 31px;
    color: #9bafba;
    font-size: 11px;
    line-height: 1.65;
}

.footer-bottom p {
    max-width: 700px;
    margin: 0;
}

.footer-bottom span {
    flex-shrink: 0;
}

/* Responsive --------------------------------------------- */
@media (max-width: 1020px) {
    .hero-panel {
        grid-template-columns: minmax(0, 1fr) 295px;
        gap: 32px;
        padding: 52px 45px;
    }

    .casino-card {
        grid-template-columns: 66px minmax(0, 1fr) 150px;
        gap: 18px;
        padding: 22px;
    }

    .casino-tags {
        grid-column: 2;
        grid-row: 2;
    }

    .visit-button {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .casino-identity {
        grid-row: 1 / span 2;
    }

    .faq-layout {
        gap: 45px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(var(--container), calc(100% - 32px));
    }

    .header-inner {
        flex-wrap: wrap;
        min-height: auto;
        gap: 16px;
        padding-block: 16px;
    }

    .main-nav {
        order: 3;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        margin-left: 0;
        padding-top: 13px;
        border-top: 1px solid var(--line);
    }

    .main-nav a {
        font-size: 12px;
    }

    .country-label {
        margin-left: auto;
    }

    .hero-section {
        padding-top: 18px;
    }

    .hero-panel {
        grid-template-columns: 1fr;
        gap: 33px;
        min-height: auto;
        padding: 40px 32px;
        border-radius: 12px;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 7.5vw, 52px);
    }

    .hero-aside {
        padding: 20px 23px 10px;
    }

    .aside-item {
        padding: 10px 0;
    }

    .listing-section,
    .criteria-section {
        padding-block: 56px;
    }

    .listing-heading {
        align-items: start;
    }

    .listing-count {
        display: none;
    }

    .criteria-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .criteria-card {
        min-height: auto;
        padding: 24px;
    }

    .criteria-index {
        margin-bottom: 15px;
    }

    .faq-section {
        padding-block: 63px 70px;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-intro h2 {
        max-width: none;
    }
}

@media (max-width: 420px) {
    .header-inner {
        gap: 10px;
    }

    .brand-symbol {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }

    .brand-name strong {
        font-size: 11px;
        letter-spacing: 0.02em;
    }

    .country-label {
        padding: 7px 8px;
        gap: 5px;
        font-size: 10px;
    }
}

@media (max-width: 570px) {
    .hero-panel {
        padding: 34px 24px;
    }

    .hero-copy h1 {
        font-size: 37px;
    }

    .hero-copy > p {
        font-size: 14px;
    }

    .casino-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px 17px;
        padding: 19px;
    }

    .casino-identity {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .casino-logo {
        width: 50px;
        height: 50px;
        font-size: 23px;
    }

    .casino-info {
        grid-column: 2;
        grid-row: 1;
    }

    .casino-info h3 {
        font-size: 19px;
    }

    .casino-tags {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .visit-button {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
