/* ===== Variables ===== */
:root {
    --color-bg-dark: #111111;
    --color-bg-darker: #0a0a0a;
    --color-bg-mid: #1a1a1a;
    --color-bg-card: #222222;
    --color-bg-light: #ffffff;
    --color-bg-off: #f5f5f5;
    --color-accent: #cccccc;
    --color-accent-hover: #ffffff;
    --color-text-light: #e0e0e0;
    --color-text-white: #ffffff;
    --color-text-dark: #2d2d2d;
    --color-text-muted: #999999;
    --color-border: #333333;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Esteban', Georgia, 'Times New Roman', serif;
    --max-width: 1100px;
    --nav-height: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background: var(--color-bg-light);
}
h1, h2, h3, h4, h5, h6,
.nav__link, .nav__cta, .nav__logo-text,
.hero__cta, .question-card, .sport-card__name,
.blog-card__title, .contact-form label, .contact-form button,
.footer h3 {
    font-family: var(--font-heading);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-bg-darker);
    border-bottom: 1px solid var(--color-border);
}
.nav__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}
.nav__logo img {
    height: 80px;
    width: auto;
}
.nav__spacer {
    height: 90px;
}
.nav__logo-text {
    color: var(--color-text-white);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav__link {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}
.nav__link:hover { color: var(--color-text-white); }
.nav__cta {
    background: transparent;
    color: var(--color-text-white);
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--color-text-muted);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.nav__cta:hover {
    background: var(--color-text-white);
    color: var(--color-bg-darker);
    border-color: var(--color-text-white);
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-light);
    transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    padding: 6rem 1.5rem 6rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero--with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero--with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.hero__content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}
.hero__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}
.hero__cta {
    display: inline-block;
    background: transparent;
    color: var(--color-text-white);
    padding: 0.8rem 2rem;
    border: 1px solid var(--color-text-muted);
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.hero__cta:hover {
    background: var(--color-text-white);
    color: var(--color-bg-dark);
    border-color: var(--color-text-white);
}

/* Dark variant for use on light backgrounds */
.hero__cta--dark {
    color: var(--color-bg-dark);
    border-color: var(--color-bg-dark);
}
.hero__cta--dark:hover {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    border-color: var(--color-bg-dark);
}

/* ===== Sections ===== */
.section {
    padding: 5rem 1.5rem;
}
.section--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}
.section--mid {
    background: var(--color-bg-mid);
    color: var(--color-text-light);
}
.section--off {
    background: var(--color-bg-off);
}
.section__container {
    max-width: var(--max-width);
    margin: 0 auto;
}
.section__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}
.section__subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: -2rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ===== Question Grid (Home) ===== */
.questions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.question-card {
    background: var(--color-bg-mid);
    border-left: 3px solid var(--color-text-muted);
    padding: 1.5rem;
    border-radius: 0 6px 6px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: border-color 0.2s;
}
.question-card:hover {
    border-left-color: var(--color-text-white);
}

/* ===== Sports Grid (Home) ===== */
.sports {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}
.sport-card {
    padding: 2rem 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.sport-card--with-image {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    color: var(--color-text-white);
}
.sport-card--with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
    border-radius: 8px;
}
.sport-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.sport-card__name {
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ===== Value Prop ===== */
.value-prop {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.value-prop__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.value-prop__text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ===== Page Content ===== */
.page {
    padding-top: 3rem;
    padding-bottom: 4rem;
}
.page__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.page__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.page__intro {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}
.page__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-bg-dark);
}
.page__content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.page__content p {
    margin-bottom: 1rem;
}
.page__content ul, .page__content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}
.page__content li {
    margin-bottom: 0.5rem;
}
.page__content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2.5rem 0;
}

/* ===== Service Cards (Testing page) ===== */
.service {
    background: var(--color-bg-off);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e8e8e8;
}
.service h2 {
    margin-top: 0 !important;
    color: var(--color-bg-dark) !important;
}
.service p {
    color: #555;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}
.contact-info a {
    color: var(--color-bg-dark);
    font-weight: 500;
    transition: opacity 0.2s;
}
.contact-info a:hover {
    opacity: 0.7;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s;
    background: #fafafa;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-bg-dark);
    background: #fff;
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form button {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}
.contact-form button:hover { background: var(--color-bg-mid); }
.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    display: none;
}
.form-status--success {
    display: block;
    background: #d4edda;
    color: #155724;
}
.form-status--error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}
.form-status--sending {
    display: block;
    background: #e8e8e8;
    color: #333;
}

/* ===== Blog ===== */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.blog-card {
    background: var(--color-bg-off);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s;
}
.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.blog-card__date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.blog-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.blog-card__summary {
    color: var(--color-text-muted);
}

/* Article */
.article__meta {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.article__back {
    display: inline-block;
    color: var(--color-bg-dark);
    font-weight: 600;
    margin-top: 2rem;
    transition: opacity 0.2s;
}
.article__back:hover { opacity: 0.7; }

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-darker);
    color: var(--color-text-light);
    padding: 3rem 1.5rem 1.5rem;
}
.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.footer h3 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}
.footer a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}
.footer a:hover { color: var(--color-text-white); }
.footer__bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    text-align: center;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .questions { grid-template-columns: 1fr 1fr; }
    .sports { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .blog-list { grid-template-columns: 1fr 1fr; }
    .footer__container { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    .hero__title { font-size: 3.5rem; }
    .sports { grid-template-columns: repeat(4, 1fr); }
    .questions { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .nav__container { height: 70px; }
    .nav__logo img { height: 50px; }
    .nav__toggle { display: flex; }
    .nav__menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-bg-darker);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-top: 1px solid var(--color-border);
    }
    .nav__menu--open { display: flex; }
    .nav__spacer { height: 70px; }
    .hero { padding: 4rem 1.5rem 4rem; min-height: 70vh; }
    .hero__title { font-size: 2.2rem; }
    .section { padding: 3rem 1.5rem; }
}
