/*
Theme Name: Red Tornado FC
Theme URI: https://example.com/
Author: Red Tornado FC
Description: Custom Red Tornado FC football club website theme.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: red-tornado-fc
*/

/* ========================================
   GLOBAL BASE STYLES
   ======================================== */
:root {
    --red: #ed1111;
    --dark: #090909;
    --dark-2: #151515;
    --white: #ffffff;
    --gray: #bdbdbd;
    --max: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.6;
}

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

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

.container {
    width: min(var(--max), 92%);
    margin: 0 auto;
}

/* ========================================
   HEADER AND NAVIGATION
   ======================================== */
/* Mobile account links are hidden on desktop */
.rtfc-mobile-account-links {
    display: none;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 7, 7, 0.97);
    border-bottom: 1px solid #292929;
}

.nav {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 800;
}

.brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand span {
    font-size: 18px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 4px;
    min-width: 0;
    list-style: none;
}

.nav-links > ul,
.nav-links .rtfc-fallback-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 12px 10px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--red);
}

/* Account name and logout/login link */
.nav-account {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 0 auto;
    padding: 0;
    white-space: nowrap;
}

.site-header .nav-account .nav-account-name {
    display: inline-block;
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap !important;
    overflow-wrap: normal;
    word-break: normal;
}

.site-header .nav-account a.nav-login,
.site-header .nav-account a.nav-login:visited,
.site-header .nav-account a.nav-login:hover {
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 10px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
}

.whatsapp-nav {
    font-weight: 700;
}

/* ========================================
   HOME HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #050505;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
    object-position: center top;
}

.hero > picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero > picture .hero-image {
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.10) 55%, rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 520px;
    padding-top: 40px;
    color: #ffffff;
}

.hero-copy h1 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: 0.98;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 3px 20px #000000;
}

.hero-copy p {
    margin: 22px 0;
    font-size: 20px;
    font-weight: 700;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 14px 20px;
    border: 2px solid var(--red);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.2s;
}

.btn-red {
    background: var(--red);
    color: #ffffff;
}

.btn-red:hover {
    background: #c90d0d;
    border-color: #c90d0d;
}

.btn-outline {
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
}

/* ========================================
   GENERAL SECTIONS AND CARDS
   ======================================== */
.section {
    padding: 76px 0;
}

.section-dark {
    background: var(--dark);
    color: #ffffff;
}

.section-title {
    margin-bottom: 42px;
    text-align: center;
}

.section-title .eyebrow {
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title h2 {
    margin-top: 7px;
    font-size: clamp(30px, 4vw, 46px);
    text-transform: uppercase;
}

.section-title p {
    max-width: 720px;
    margin: 12px auto 0;
    color: #666666;
}

.section-dark .section-title p {
    color: #bbbbbb;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    padding: 28px;
    border: 1px solid #e4e4e4;
    border-top: 4px solid var(--red);
    background: #ffffff;
}

.card h3 {
    margin-bottom: 9px;
    text-transform: uppercase;
}

.card p {
    color: #666666;
}

.dark-card {
    background: #171717;
    border-color: #292929;
}

.dark-card p {
    color: #bbbbbb;
}

.icon {
    margin-bottom: 12px;
    color: var(--red);
    font-size: 32px;
}

/* ========================================
   CALL TO ACTION
   ======================================== */
.cta {
    padding: 55px 0;
    background: var(--red);
    color: #ffffff;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    text-transform: uppercase;
}

.cta p {
    margin-top: 7px;
}

.cta .btn {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
}

.cta .btn:hover {
    background: #111111;
    color: #ffffff;
}

/* ========================================
   INNER PAGES
   ======================================== */
.page-hero {
    padding: 70px 0;
    border-bottom: 4px solid var(--red);
    background: linear-gradient(120deg, #090909, #1b1b1b);
    color: #ffffff;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1;
    text-transform: uppercase;
}

.page-hero p {
    max-width: 720px;
    margin-top: 12px;
    color: #bbbbbb;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 50px;
}

.content h2 {
    margin: 28px 0 10px;
    font-size: 30px;
    text-transform: uppercase;
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 15px;
    color: #555555;
}

.info-box {
    padding: 28px;
    border-top: 4px solid var(--red);
    background: #111111;
    color: #ffffff;
}

.info-box h3 {
    margin-bottom: 14px;
    text-transform: uppercase;
}

.info-box p {
    margin-bottom: 10px;
    color: #cccccc;
}

/* ========================================
   FORMS
   ======================================== */
.form-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 14px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    background: #ffffff;
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.note {
    margin: 20px 0;
    padding: 15px 17px;
    border-left: 4px solid var(--red);
    background: #f4f4f4;
    color: #555555;
}

.form-submit {
    margin-top: 22px;
}

/* ========================================
   CONTACT CARDS
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    padding: 28px;
    border-top: 4px solid var(--red);
    background: #f6f6f6;
}

.contact-card h3 {
    margin-bottom: 8px;
    text-transform: uppercase;
}

.contact-card p {
    color: #666666;
}

.contact-card .btn {
    display: inline-block;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    padding: 40px 0 20px;
    background: #050505;
    color: #aaaaaa;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
}

.footer-brand img {
    width: 72px;
    height: 72px;
}

.footer-brand strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    list-style: none;
}

.footer-links a:hover {
    color: var(--red);
}

.copyright {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #222222;
    font-size: 13px;
}

/* ========================================
   EVENTS CALENDAR / RSVP
   ======================================== */
input.tribe-tickets__rsvp-form-field-quantity,
label[for^="quantity_"] {
    display: none !important;
}

.tribe-events-c-small-cta__price,
.tribe-events-cost,
.tribe-events-event-cost-label,
.tribe-events-event-cost {
    display: none !important;
}

/* ========================================
   RESPONSIVE LAYOUT
   ======================================== */
@media (max-width: 1100px) {
    .nav {
        gap: 10px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 13px;
    }

    .nav-account {
        gap: 6px;
    }

    .site-header .nav-account .nav-account-name {
        font-size: 12px;
    }

    .site-header .nav-account a.nav-login {
        padding-right: 6px;
        padding-left: 6px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .nav {
        min-height: 74px;
    }

    .brand img {
        width: 54px;
        height: 54px;
    }

    .menu-toggle {
        display: block;
    }

.nav-links {
    position: absolute;
    top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 4%;
        border-bottom: 1px solid #292929;
        background: #090909;
    }

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

    .nav-links > ul,
    .nav-links .rtfc-fallback-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links a {
        display: block;
    }

    .hero,
    .hero-image {
        min-height: 560px;
    }

    .hero > picture .hero-image {
        min-height: 560px;
    }

    .hero-copy {
        max-width: 460px;
        padding-top: 0;
    }

    .cards,
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner,
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .brand span {
        font-size: 14px;
    }

    .nav {
        gap: 8px;
    }

    /* Account navigation occupies its own mobile row */
.nav-account {
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    order: 2;
}

    /* Hide desktop account links on mobile */
.site-header .nav-account > .nav-account-name,
.site-header .nav-account > a.nav-login,
.site-header .nav-account > a.nav-login:visited,
.site-header .nav-account > a.nav-login:hover {
    display: none !important;
}

    /* Keep MY PLAYERS visible and accessible */
    .site-header .rtfc-players-dropdown {
        margin-left: auto;
    }

    /* Display dashboard and logout inside hamburger menu */
    .nav-links.open .rtfc-mobile-account-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid #333;
    }

    .nav-links.open .rtfc-mobile-account-links a {
        display: block;
        padding: 12px 10px;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
    }

    .nav-links.open .rtfc-mobile-account-links a:hover {
        background: var(--red);
    }
    .site-header .nav-account .nav-account-name {
        font-size: 11px;
    }

    .site-header .nav-account a.nav-login {
        padding: 8px 4px;
        font-size: 12px;
    }

    .hero,
    .hero-image,
    .hero > picture .hero-image {
        min-height: 500px;
    }

    .hero-image,
    .hero > picture .hero-image {
        object-position: 50% top;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.72));
    }

    .hero-copy {
        align-self: flex-end;
        padding-bottom: 35px;
    }

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

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

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .section {
        padding: 55px 0;
    }
}

/* Header account name and login/logout links */
.site-header .nav-account {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.site-header .nav-account .nav-account-name,
.site-header .nav-account a.nav-login,
.site-header .nav-account a.nav-login:visited,
.site-header .nav-account a.nav-login:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.site-header .nav-account .nav-account-name {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.site-header .nav-account a.nav-login {
    display: inline-block;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

/* Red hover for Parent, Manager, Coach Dashboard and Logout */
.site-header .nav-account > a.nav-login:hover {
    background-color: #ed1111 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 4px;
}

/* Smooth hover transition */
.site-header .nav-account a.nav-login {
    transition: background-color 0.2s ease;
}
/* ==========================================
   RTFC LOGIN DROPDOWN
   ========================================== */

.site-header .rtfc-login-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.site-header .rtfc-login-dropdown .rtfc-login-main {
    background: #ed1111;
    border-radius: 4px 0 0 4px;
}

.site-header .rtfc-login-dropdown:hover .rtfc-login-main,
.site-header .rtfc-login-dropdown:hover .rtfc-login-toggle {
    background: #bb0000;
}

.site-header .rtfc-login-toggle {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    min-width: 32px;
    background: #ed1111;
    color: #fff;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.3);
    border-radius: 0 4px 4px 0;
    font-size: 18px;
    cursor: pointer;
}

.site-header .rtfc-login-toggle:hover,
.site-header .rtfc-login-toggle:focus-visible {
    background: #bb0000;
}

.site-header .rtfc-login-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    padding-top: 6px;
    z-index: 1000;
}

.site-header .rtfc-login-menu a {
    display: block;
    padding: 12px 16px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.site-header .rtfc-login-menu a:hover,
.site-header .rtfc-login-menu a:focus-visible {
    background: #ed1111;
    color: #fff;
}

.site-header .rtfc-login-dropdown:hover .rtfc-login-menu,
.site-header .rtfc-login-dropdown:focus-within .rtfc-login-menu,
.site-header .rtfc-login-dropdown.is-open .rtfc-login-menu {
    display: block;
}
/* ==========================================
   RTFC MY PLAYERS DROPDOWN
   ========================================== */

.site-header .rtfc-players-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-header .rtfc-players-toggle {
    appearance: none;
    width: auto;
    padding: 12px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    cursor: pointer;
}

.site-header .rtfc-players-toggle:hover,
.site-header .rtfc-players-toggle:focus-visible,
.site-header .rtfc-players-dropdown.is-open .rtfc-players-toggle {
    background: var(--red);
    color: #ffffff;
}

.site-header .rtfc-players-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1001;
    min-width: 220px;
    padding-top: 6px;
}

.site-header .rtfc-players-menu a,
.site-header .rtfc-players-empty {
    display: block;
    padding: 12px 16px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.site-header .rtfc-players-menu a:hover,
.site-header .rtfc-players-menu a:focus-visible {background: var(--red);
    color: #ffffff;
}

.site-header .rtfc-players-manage {
    border-top: 1px solid #444444;
}

.site-header .rtfc-players-dropdown:hover .rtfc-players-menu,
.site-header .rtfc-players-dropdown:focus-within .rtfc-players-menu,
.site-header .rtfc-players-dropdown.is-open .rtfc-players-menu {
    display: block;
}