/* ---------------------------------------------------------------
   missoulapoker.com - shared styles
   Used by: /index.php, /schedule.html, /promos.html, /tournaments.html
   Edit here once; every page picks it up.
   If you change this file, bump the ?v= number on the <link> tags
   in the four pages so browsers pick up the new copy.
   --------------------------------------------------------------- */

:root {
    --navy: #041F3C;
    --navy-deep: #031529;
    --navy-lift: #0a2d52;
    --muted: #c3cedb;
    --dim: #8fa0b3;
    --accent: #e0b24c;
    --line: rgba(255, 255, 255, .12);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--navy);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark pages (schedule / promos / tournaments) */
body.dark {
    background: var(--navy);
    color: #fff;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- header ---------- */

header {
    position: relative;
    z-index: 20;
    background: var(--navy);
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 0 1 auto;
    text-decoration: none;
    color: #fff;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.header-logos img {
    height: 64px;
    width: auto;
}

.line1 {
    display: block;
    font-size: clamp(16px, 3.2vw, 24px);
    line-height: 1.2;
    color: #e9eef4;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
}

.line1 .cap {
    font-size: 1.25em;
    font-weight: 300;
}

/* ---------- nav ---------- */

.nav-links {
    display: flex;
    justify-content: center;
    gap: clamp(22px, 4vw, 48px);
    font-size: 17px;
    flex: 1;
}

.nav-links a {
    position: relative;
    padding: 6px 2px;
    text-decoration: none;
    color: var(--muted);
    letter-spacing: .06em;
    transition: color .2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* ---------- social icons ---------- */

.social-links-large {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex: none;
}

.social-links-small {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.social-links-large a,
.social-links-small a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background .2s ease, transform .2s ease;
}

.social-links-large a:hover,
.social-links-small a:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

.social-links-large img,
.social-links-small img {
    width: 30px;
    height: 30px;
}

/* ---------- hamburger ---------- */

.menu-icon {
    display: none;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    z-index: 1000;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-icon .bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .2s ease;
}

.menu-icon.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------- mobile menu ---------- */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(3, 21, 41, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu a {
    padding: 14px 24px;
    color: #fff;
    text-decoration: none;
    font-size: clamp(24px, 7vw, 32px);
    letter-spacing: .06em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, color .2s ease;
}

.mobile-menu.active a {
    opacity: 1;
    transform: none;
}

.mobile-menu.active a:nth-child(1) {
    transition-delay: .06s;
}

.mobile-menu.active a:nth-child(2) {
    transition-delay: .12s;
}

.mobile-menu.active a:nth-child(3) {
    transition-delay: .18s;
}

.mobile-menu.active a:nth-child(4) {
    transition-delay: .24s;
}

.mobile-menu a[aria-current="page"] {
    color: var(--accent);
}

.mobile-menu .menu-call {
    margin-top: 18px;
    font-size: clamp(16px, 4.5vw, 19px);
    letter-spacing: .1em;
    color: var(--accent);
}

body.menu-open {
    overflow: hidden;
}

/* ---------- main ---------- */

.main-content {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(36px, 7vw, 72px) 20px;
    text-align: center;
}

/* home page hero */

.hero h1 {
    margin: 0;
    font-size: clamp(17px, 4vw, 23px);
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--navy);
}

.hero h1 .big {
    display: block;
    margin-top: 8px;
    font-size: clamp(32px, 8.5vw, 52px);
    font-weight: 700;
    letter-spacing: .03em;
}

.suits {
    margin: clamp(30px, 6vw, 52px) 0;
    font-size: clamp(22px, 5vw, 30px);
    letter-spacing: .3em;
    color: #9aa9ba;
}

.call-label {
    margin: 0;
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #64758a;
}

.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 14px 28px;
    min-height: 52px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    font-size: clamp(18px, 4.6vw, 22px);
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 6px 18px rgba(4, 31, 60, .25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.call-btn svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.call-btn:hover {
    background: var(--navy-lift);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(4, 31, 60, .3);
}

.call-btn:active {
    transform: translateY(0);
}

.address {
    margin: 22px 0 0;
    font-size: 14px;
    letter-spacing: .08em;
    color: #64758a;
}

.address a {
    color: inherit;
}

/* inner pages: one big image */

.page-title {
    margin: 0;
    font-size: clamp(22px, 5vw, 34px);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-sub {
    margin: 10px 0 clamp(22px, 4vw, 34px);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
}

.sheet {
    display: inline-block;
    width: 100%;
    max-width: 860px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
    transition: transform .25s ease, box-shadow .25s ease;
}

.sheet:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .55);
}

.sheet img {
    width: 100%;
}

/* ---------- footer ---------- */

footer {
    flex: none;
    margin-top: auto;
    background: var(--navy-deep);
    color: var(--muted);
    text-align: center;
    padding: 28px 20px;
    font-size: 15px;
}

footer p {
    margin: 0;
}

.footer-call {
    display: inline-block;
    margin-bottom: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .06em;
}

.footer-call:hover {
    color: var(--accent);
}

.footer-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--dim);
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
    header {
        padding-right: 64px;
    }

    .nav-links,
    .social-links-large {
        display: none;
    }

    .menu-icon {
        display: flex;
    }

    .social-links-small {
        display: flex;
    }

    .header-logos img {
        height: 56px;
    }
}

@media (max-width: 570px) {
    header {
        padding: 14px 64px 14px 16px;
    }

    .brand {
        gap: 10px;
    }

    .header-logos {
        gap: 8px;
    }

    .header-logos img {
        height: 48px;
    }

    .main-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sheet {
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

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